[Kamailio-Users] bug in subscribe when contact uses tcp transport?

Juha Heinanen jh at tutpro.com
Fri Mar 6 09:36:17 CET 2009


if user subscribes using tcp transport, kamailio presence server replies
with 200 ok where contact specifies udp transport.  this looks like a
bug to me, because re-subscribe to contact uri then uses udp transport,
which may not even be enabled by firewall between ua and kamailio.

do others agree that this is a bug?  if so, any volunteers to fix
it?

-- juha

+++ 6-3-2009 10:27:39.692364 INFO SIP ::send_sip_tcp
Send to: tcp:192.98.101.10:5060
SUBSCRIBE sip:test at test.fi SIP/2.0
Via: SIP/2.0/TCP 192.98.101.10:5074;rport;branch=z9hG4bKrzmiknas
Max-Forwards: 70
To: <sip:test at test.fi>
From: "Juha Heinanen" <sip:jh at test.fi>;tag=gonhy
Call-ID: ljkaayblocflyyu at taimen
CSeq: 62 SUBSCRIBE
Contact: <sip:jh at 192.98.101.10:5074;transport=tcp>
Accept: application/pidf+xml
Event: presence
Expires: 3600
User-Agent: Twinkle/1.4.1
Content-Length: 0

+++ 6-3-2009 10:27:39.707261 INFO SIP ::process_sip_msg
Received from: tcp:192.98.101.10:5060
SIP/2.0 202 OK
Record-Route: <sip:192.98.101.10;r2=on;lr>
Record-Route: <sip:192.98.101.10;transport=tcp;r2=on;lr>
Via: SIP/2.0/TCP 192.98.101.10:5074;received=192.98.101.10;rport=54705;branch=z9hG4bKrzmiknas
To: <sip:test at test.fi>;tag=3d2810ff0e005fca9b24aee8694a9a3d-a5a3
From: "Juha Heinanen" <sip:jh at test.fi>;tag=gonhy
Call-ID: ljkaayblocflyyu at taimen
CSeq: 62 SUBSCRIBE
Expires: 3600
Contact: <sip:192.98.101.10:5082>
Server: OpenXg Kamailio (1.5.0-pre2-tls (i386/linux))
Content-Length: 0




More information about the sr-users mailing list