[jdev] Gateway registration issue?
Eugeny N Dzhurinsky
bofh at redwerk.com
Fri Apr 13 10:09:46 CDT 2007
Hello!
We are about to develop an application which needs to be able to send
notifications to ICQ/AIM accounts. This software is needed to be writted in
Java.
We wrote simple test, which logs into a jabber server, then registers in
transport and trying to send a message, but for some reason that doesn't work.
Below you may find packet log:
>> <iq type='get' from='test at domain.com/Feridian' to='icq.domain.com' id='abcd2'>
<query xmlns='jabber:iq:register'/>
</iq>
<< <iq from='icq.domain.com' to='test at domain.com/Feridian' id='abcd2' type='result'>
<query xmlns='jabber:iq:register'>
<instructions>Please type your ICQ user id number into the username field and your password.</instructions>
<username>123456</username>
<password/>
<registered/>
</query>
</iq>
>> <iq type='set' from='test at domain.com/Feridian' to='icq.domain.com' id='abcd3'>
<query xmlns='jabber:iq:register'>
<username>123456</username>
<password>password</password>
</query>
</iq>
<< <iq from='icq.domain.com' to='test at domain.com/Feridian' type='result' id='abcd3'/>
>> <iq from='test at domain.com/Feridian' type='set' id='push' to='test at domain.com/Feridian' >
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='icq.domain.com' />
</query>
</iq>
<< <iq from='test at domain.com/Feridian' to='test at domain.com/Feridian' type='error' id='push'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='icq.domain.com'/>
</query>
<error code='404' type='wait'>
<recipient-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</iq>
>> <presence to="icq.domain.com" from="test at domain.com/Feridian" id="abcd4">
<show>chat</show>
</presence>
<< <presence from='119576351 at icq.domain.com' to='test at domain.com/Feridian' type='unavailable'>
<c node='http://pyicq-t.blathersource.org/protocol/caps' xmlns='http://jabber.org/protocol/caps' ver='0.8'/>
</presence>
As stated in XEP-0100, after getting registration response transport/jabber
should send presence packet, like this
<presence from="icq.domain.com" type="subscribe" to="bofh at domain.com/Psi" />
But this packet isn't sent by server!
But if I dump packets sent by Psi, there is such responce packet.
What could I miss?
--
Eugene N Dzhurinsky
More information about the JDev
mailing list