[OpenSIPS-Users] [Presence] How to receive presence NOTIFY over TCP ?

Iñaki Baz Castillo ibc at aliax.net
Mon Mar 15 00:13:35 CET 2010


2010/3/11 Pascal Maugeri <pascal.maugeri at gmail.com>:
> Hola Iñaki
> Here is the SIP flow you asked me.
> Hope it helps to spot the problem. Observe the watcher is behind NAT.

> SUBSCRIBE sip:presentity at presence.net SIP/2.0
> Record-Route: <sip:xxx.xxx.xxx.xxx:6666;lr=on>
> Call-ID: d041f6cae786fea76503d436585708b8 at 10.1.1.235
> CSeq: 1 SUBSCRIBE
> From: "watcher" <sip:watcher at presence.net>;tag=94671740
> To: <sip:presentity at presence.net>
> Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:6666;branch=z9hG4bK581b.d3f0fa41.0
> Via: SIP/2.0/UDP
> 10.1.1.235:5060;rport=5060;received=yyy.yyy.yyy.yyy;branch=z9hG4bKc5Obqwa8W
> Max-Forwards: 69
> Contact: <sip:watcher at 10.1.1.235:5060;transport=tcp>
> Event: presence
> Expires: 3600
> User-Agent: XXX
> Accept: application/pidf+xml
> Content-Length: 0

Hi Pascal, the above initial SUBSCRIBE has a Record-Route containing a
SIP URI without ;transport=tcp parameter, so there is a proxy between
the NATted client and the presence server. I suspect the topology is
as follows:


  client --- Router-NAT ---- (SIP TCP) ---- Proxy ---- (SIP UDP) ----
Presence-Server

Is it correct?



-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the Users mailing list