2009/3/8 Daniel-Constantin Mierla <miconda(a)gmail.com>om>:
Hello Juha,
reviewing your examples, all seems fine. In the first case it is UDP
contact because the first proxy is doing transport gateway (tcp-to-udp)
and presence server get's the SUBSCRIBE via UDP. Therefore it sets the
protocol to UDP.
Yes. It must be checked that the NOTIFY frmo the presence server have
a RURI containing "transport=tcp".
But the bug I reported in OpenSIPS was the opposite:
Phone ---(UDP)--- Proxy ---(TCP)--- PresenceServer
I route the SUBSCRIBE to the PresenceServer using TCP by seting:
$du="sip:PresenceServer;transport=tcp"
but the 202 replied by the presence server contains a "Contact" with
no "transport=tcp". This means that refresh-SUBSCRIBE's from the phone
would fail since they would be routed to the PresenceServer using UDP
(in case of firewall they'll fail).
--
Iñaki Baz Castillo
<ibc(a)aliax.net>