doc/stanza_routing.txt
author Matthew Wild <mwild1@gmail.com>
Mon, 20 Feb 2023 18:10:15 +0000
branch0.12
changeset 12898 0598d822614f
parent 22 2856dfc1f5cc
permissions -rw-r--r--
mod_websocket: Fire pre-session-close event (fixes #1800) This event was added in a7c183bb4e64 and is required to make mod_smacks know that a session was intentionally closed and shouldn't be hibernated (see fcea4d9e7502). Because this was missing from mod_websocket's session.close(), mod_smacks would always attempt to hibernate websocket sessions even if they closed cleanly. That mod_websocket has its own copy of session.close() is something to fix another day (probably not in the stable branch). So for now this commit makes the minimal change to get things working again. Thanks to Damian and the Jitsi team for reporting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     1
No 'to' attribute:
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     2
	IQ:			Pass to appropriate handler
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     3
	Presence:		Broadcast to contacts
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     4
				- if initial presence, also send out presence probes
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     5
					- if probe would be to local user, generate presence stanza for them
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     6
	Message:		Route as if it is addressed to the bare JID of the sender
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     7
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     8
To a local host:
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
     9
	IQ:			Pass to appropriate handler
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    10
	Presence:		-
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    11
	Message:		Deliver to admin?
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    12
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    13
To local contact:
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    14
	Bare JID:
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    15
		IQ:		Pass to appropriate handler
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    16
		Presence:	Broadcast to all resources
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    17
		Message:	Route to 'best' resource
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    18
	Full JID:
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    19
		IQ:		Send to resource
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    20
		Presence:	Send to resource
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    21
		Message:	Send to resource
21
ade26639f237 Updated stanza routing doc
Matthew Wild <mwild1@gmail.com>
parents: 12
diff changeset
    22
	Full JID but resource not connected:
ade26639f237 Updated stanza routing doc
Matthew Wild <mwild1@gmail.com>
parents: 12
diff changeset
    23
		IQ:		Return service-unavailable
ade26639f237 Updated stanza routing doc
Matthew Wild <mwild1@gmail.com>
parents: 12
diff changeset
    24
		Message:	Handle same as if to bare JID
ade26639f237 Updated stanza routing doc
Matthew Wild <mwild1@gmail.com>
parents: 12
diff changeset
    25
		Presence:	Drop (unless type=subscribe[ed])
12
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    26
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    27
To remote contact:
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    28
	Initiate s2s connection if necessary
90f22275f7ae Moved server module to net/
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
    29
	Send stanza across
22
2856dfc1f5cc Various documentation updates, and added names.txt :)
Matthew Wild <mwild1@gmail.com>
parents: 21
diff changeset
    30