Oh wait, this xml packet is destined to
"[email protected]<http://[email protected]/275c37159368>"
, not opensips c2s interface. Since all status goes out from 5347 to all
xmpp clients, I have to separate out the opensips port connected to 5347 and
then try. I found it to be dynamic port 59284. After doing ngrep on that
port I see opensips sending all status update to 5347, but not other way.
The only packet from 5347 to 59284 is a probe to know if the an offline sip
buddy is available (last couple of packets)

Here is the ngrep output

sips01:/etc/jabberd2# ngrep -d lo port 59284
interface: lo (127.0.0.0/255.0.0.0)
filter: (ip or ip6) and ( port 59284 )
#
T 172.16.0.139:59284 -> 172.16.0.139:5347 [AP]
  <presence to="[email protected]" from="rboxall*
[email protected]"
  type="unavailable"/>
##
T 172.16.0.139:59284 -> 172.16.0.139:5347 [AP]
  <presence to="[email protected]" from="rboxall*
[email protected]"
  type="unavailable"/>
##
T 172.16.0.139:59284 -> 172.16.0.139:5347 [AP]
  <presence to="[email protected]" from="rboxall*
[email protected]">
  .    <status>hi there !!!</status>.    <priority>0.00</priority>.
</presence>
##
T 172.16.0.139:59284 -> 172.16.0.139:5347 [AP]
  <presence to="[email protected]" from="rboxall*
[email protected]">
  .    <status>hi there !!!</status>.    <priority>0.00</priority>.
</presence>
##
T 172.16.0.139:5347 -> 172.16.0.139:59284 [AP]
  <presence xmlns='jabber:client' type='probe' to='rboxall*
[email protected]' from='jabb1
  @xmpp.smithmicro.com'/>
##
T 172.16.0.139:59284 -> 172.16.0.139:5347 [AP]
  <presence to="[email protected]" from="rboxall*
[email protected]">.    <status>
  hi there !!!</status>.    <priority>0.00</priority>.  </presence>
##
T 172.16.0.139:5347 -> 172.16.0.139:59284 [AP]
  <presence xmlns='jabber:client' type='probe' to='msivaraman*
[email protected]' from='ja
  [email protected]'/>
#
T 172.16.0.139:59284 -> 172.16.0.139:5347 [AP]
  <presence to="[email protected]" from="msivaraman*
[email protected]" type="unav
  ailable"/>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to