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='[EMAIL PROTECTED]/Feridian' to='icq.domain.com' 
>> id='abcd2'> 
    <query xmlns='jabber:iq:register'/> 
   </iq>

<< <iq from='icq.domain.com' to='[EMAIL PROTECTED]/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='[EMAIL PROTECTED]/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='[EMAIL PROTECTED]/Feridian' type='result' 
id='abcd3'/>

>> <iq from='[EMAIL PROTECTED]/Feridian' type='set' id='push' to='[EMAIL 
>> PROTECTED]/Feridian' >
        <query xmlns='jabber:iq:roster'>
        <item subscription='none' jid='icq.domain.com' />
        </query>
    </iq>

<< <iq from='[EMAIL PROTECTED]/Feridian' to='[EMAIL PROTECTED]/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="[EMAIL PROTECTED]/Feridian" id="abcd4">
        <show>chat</show>
    </presence>

<< <presence from='[EMAIL PROTECTED]' to='[EMAIL PROTECTED]/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="[EMAIL PROTECTED]/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

Reply via email to