Dnia 2012-09-17, pon o godzinie 12:12 +0200, Alexandre Jousset pisze: > >> The router should send the messages to both SMs where the > >> resources with same priority are bound, they will know what to do > with > >> them. > > > > What about iq and/or presence? > > > > - iq-get would get two responses then > > - presence-subscribe could get both accept and deny, which to use? > > This would cause problems only if the message is sent to > "user@domain". And in that case, the link I've posted (rfc3921) says > that for IQs the server should reply with an error on behalf of the > user. And "For presence stanzas other than those of type "probe", the > server MUST deliver the stanza to all available resources; ...". I > suppose that in the latter case the response includes the full > JID...?
Again. There is '[email protected]/foo' resource with priority 1 bound on sm1. There is '[email protected]/bar' resource with priority 1 bound on sm2. 1. There is an incoming iq-get request for [email protected] vCard. - it is being sent to sm1 and sm2 - sm1 and sm2 answers on behalf of the user - querying user gets two responses 1. Presence case - you're right. Presence packets are replicated to all resources, so we're good here.
