Login without resource

I want to login to JiveMessenger as user@host and get messages directed for all JIDs of the form user@host/resource. That is, messages for all resources should be sent to me

Currently, I get an error 503 then I try to send a message norgould@norgould1/Echo when the user logged in as norgould@norgould1. Is this the correct behavior?

Response:

<iq id=“JN_5” type=“error” to=“norgould@norgould1/Echo” from="dlg@norgould1/norg

ould"><soap:Envelope xmlns:soap=“http://schemas.xmlsoap.org/soap/envelope/”><soa

p:Body><echo xmlns=“http://norgould.com/demo” xmlns:xsd="http://www.w3.org/2001/

XMLSchema" xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>foo<

/echo></soap:Body></soap:Envelope><service-unava

ilable xmlns=“urn:ietf:params:xml:ns:xmpp-stanzas”/>

Thank you,

Dan

Hey Dan,

The 503 error that you are getting is because the user: norgould@norgould1/Echo sent an IQ packet to: dlg@norgould1/norgould who was offline.

I want to login to JiveMessenger as user@host and get

messages directed for all JIDs of the form

user@host/resource. That is, messages for all

resources should be sent to me

I don’'t think that what you are trying to do is possible according to the XMPP spec.

If you want to send an IQ packet to another client then you have to specify a full JID (that means that a resource must be specified) and only that client will receive the IQ packet.

If you want to send a Message packet you can:

  1. send it to a full JID which means that only that client will get the message or

  2. send it to a bare JID (eg. user@host) in which case the server will try to send the packet to the connection whose resource has the highest priority. The priority of a connection is set via an available Presence.

I don’'t know your requirements but you can activate the audit functionality if you need to track all the packets or you may use MUC rooms and have invisible users that may log or see all the activity of the rooms.

Regards,

– Gato