[Serusers] presence, buddies
anna
anna.rahm at e-horizon.se
Mon May 19 13:39:03 CEST 2003
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 at storstark.x.se' type='subscribe'/>
*2)
Jabàser (result query roster)
<iq type='result' from='a at storstark.x.se/serXjab'><query xmlns='jabber:iq:roster'><item jid='32 at icq.storstark.x.se' subscription='to' server='yes'/><item jid='16 at icq.storstark.x.se' name='nbl at school' subscription='to' server='yes'><group>Contacts</group></item><item jid='20 at icq.storstark.x.se' subscription='to' server='yes'/><item jid='41 at icq.storstark.x.se' subscription='to' server='yes'/><item jid='17 at icq.storstark.x.se' subscription='to' server='yes'/><item jid='15 at icq.storstark.x.se' subscription='to' server='yes'/><item jid='92 at icq.storstark.x.se' subscription='to' server='yes'/><item jid='66 at icq.storstark.x.se' subscription='to' server='yes'/><item jid='10 at icq.storstark.x.se' subscription='to' server='yes'/><item jid='u at storstark.x.se' name='u' subscription='both' server='yes'><group>Contacts</group></item><item jid='86 at icq.storstark.x.se' subscription='to' server='yes'/><item jid='13 at icq.storstark.x.se' subscription='to' server='yes'/><item jid='w at storstark.x.se' name='w' subscription='both' server='yes'><group>Contacts</group></item><item jid='24 at icq.storstark.x.se' subscription='from' server='yes'/><item jid='51 at 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 at icq.storstark.x.se' subscription='to' server='yes'/></query></iq>
Jabàser (presence from)
<presence from='u at storstark.x.se/TipicIM' to='a at storstark.x.se'><x xmlns='jabber:x:avatar'><hash>03d5f06d79b738d7f55aa03f054e6bc263f9f054</hash></x><priority>8</priority><x xmlns='jabber:x:delay' from='u at storstark.e-horizon.se/TipicIM' stamp='20030515T11:01:29'/><x xmlns='jabber:x:delay' from='u at storstark.x.se/TipicIM' stamp='20030515T11:01:29'/></presence>
***********************'
Jabàser (presence from)
<presence from='u at storstark.e-horizon.se/TipicIM' to='a at storstark.x.se'><x xmlns='jabber:x:avatar'><hash>03d5f06d79b738d7f55aa03f054e6bc263f9f054</hash></x><priority>8</priority><x xmlns='jabber:x:delay' from='u at storstark.e-x.se/TipicIM' stamp='20030515T11:01:29'/><x xmlns='jabber:x:delay' from='u at storstark.x.se/TipicIM' stamp='20030515T11:01:29'/></presence>
Jabàser (presence to)
<presence to='a at storstark.x.se' from='icq.storstark.e-horizon.se/registered'><status>Online</status><show>online</show></presence>
Jabàser (presence to)
<presence to='a at storstark.x.se' from='16 at icq.storstark.e-horizon.se'/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20030519/46e6c96f/attachment.htm>
More information about the sr-users
mailing list