Thank you very much for quick answers, one more question though, I really need to get
around this problem.
Is it possible to "translate" the buddy list into SIP and get the
status/presence messages sent to the sip client in a notify message WITHOUT sending all
these subscibe(´s).
Jabber send this big load of buddies to the Ser (see bellow in highlighted *2), who now
just ignores them, but what if we split up all these buddies and send them in notify´s to
the client.
Question: is it possible to send a lot of notify´s without sending "subscribe"
to SER first.
Register from (msn)klient with icq transport
UAC
SER
Jabber
Register
à
200 ok
ß
200 acc
ß
subscribe
à
200 ok
ß
Notify
ß
200 ok
à
start stream
à
ok stream
ß
get query auth
à
result query auth
ß
set query auth
à
result
ß
get query roster
à
Notify
ß
200 ok
à
presence to b
à
result query roster*
ß
result query roster*
ß
* I want these to get translated into SIP and sent further on to the client.
Register from (msn)client with icq transport
Serà Jab (start stream)
<stream:stream to='storstark.x.se' xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams'>
Jabàser (ok stream)
<?xml version='1.0'?><stream:stream
xmlns:stream='http://etherx.jabber.org/streams' id='3EC37D57'
xmlns='jabber:client' from='storstark.x.se'>
seràJab (get query auth)
<iq id='00000000' type='get'><query
xmlns='jabber:iq:auth'><username>a</username></query></iq>
Jabàser (result query auth)
<iq id='00000000' type='result'><query
xmlns='jabber:iq:auth'><username>a</username><password/><digest/><resource/></query></iq>
seràJab (set query auth)
<iq id='00000001' type='set'><query
xmlns='jabber:iq:auth'><username>a</username><resource>serXjab</resource><digest>cdca92ddc1414805e96e17ddb6a5900489d65467</digest></query></iq>
Jabàser (result)
<iq id='00000001' type='result'/>
seràJab (get query roster)
<iq type='get'><query xmlns='jabber:iq:roster'/></iq>
************************''
seràJab (presence to b)
<presence><status>Online</status><priority>9</priority></presence>
<presence to='u(a)storstark.x.se' type='subscribe'/>
*2)
Jabàser (result query roster)
<iq type='result' from='a(a)storstark.x.se/serXjab'><query
xmlns='jabber:iq:roster'><item jid='32(a)icq.storstark.x.se'
subscription='to' server='yes'/><item
jid='16(a)icq.storstark.x.se' name='nbl@school' subscription='to'
server='yes'><group>Contacts</group></item><item
jid='20(a)icq.storstark.x.se' subscription='to'
server='yes'/><item jid='41(a)icq.storstark.x.se'
subscription='to' server='yes'/><item
jid='17(a)icq.storstark.x.se' subscription='to'
server='yes'/><item jid='15(a)icq.storstark.x.se'
subscription='to' server='yes'/><item
jid='92(a)icq.storstark.x.se' subscription='to'
server='yes'/><item jid='66(a)icq.storstark.x.se'
subscription='to' server='yes'/><item
jid='10(a)icq.storstark.x.se' subscription='to'
server='yes'/><item jid='u(a)storstark.x.se' name='u'
subscription='both'
server='yes'><group>Contacts</group></item><item
jid='86(a)icq.storstark.x.se' subscription='to'
server='yes'/><item jid='13(a)icq.storstark.x.se'
subscription='to' server='yes'/><item jid='w(a)storstark.x.se'
name='w' subscription='both'
server='yes'><group>Contacts</group></item><item
jid='24(a)icq.storstark.x.se' subscription='from'
server='yes'/><item jid='51(a)icq.storstark.x.se'
subscription='to' server='yes'/><item
jid='icq.storstark.x.se/registered'
Jabàser (result query roster)
subscription='from' server='yes'/><item
jid='11(a)icq.storstark.x.se' subscription='to'
server='yes'/></query></iq>
Jabàser (presence from)
<presence from='u(a)storstark.x.se/TipicIM'
to='a(a)storstark.x.se'><x
xmlns='jabber:x:avatar'><hash>03d5f06d79b738d7f55aa03f054e6bc263f9f054</hash></x><priority>8</priority><x
xmlns='jabber:x:delay' from='u(a)storstark.e-horizon.se/TipicIM'
stamp='20030515T11:01:29'/><x xmlns='jabber:x:delay'
from='u(a)storstark.x.se/TipicIM'
stamp='20030515T11:01:29'/></presence>
***********************'
Jabàser (presence from)
<presence from='u(a)storstark.e-horizon.se/TipicIM'
to='a(a)storstark.x.se'><x
xmlns='jabber:x:avatar'><hash>03d5f06d79b738d7f55aa03f054e6bc263f9f054</hash></x><priority>8</priority><x
xmlns='jabber:x:delay' from='u(a)storstark.e-x.se/TipicIM'
stamp='20030515T11:01:29'/><x xmlns='jabber:x:delay'
from='u(a)storstark.x.se/TipicIM'
stamp='20030515T11:01:29'/></presence>
Jabàser (presence to)
<presence to='a(a)storstark.x.se'
from='icq.storstark.e-horizon.se/registered'><status>Online</status><show>online</show></presence>
Jabàser (presence to)
<presence to='a(a)storstark.x.se'
from='16(a)icq.storstark.e-horizon.se'/>