[Freeswitch-users] Kamailio branch changes in VIA header

Sergey Safarov s.safarov at gmail.com
Fri Sep 23 15:09:14 MSD 2016


Hello gys
Could you please help me resolve issue with Kamailio.
In attached file call from freeswitch to endpoint via Kamailio proxy.
In packets 3 and 4 kamailio sends two INVITES with different branches in
"VIA" header for IP 10.21.19.10 ("SIP/2.0/UDP
217.12.247.212;branch=z9hG4bK5398.d5b303bd66f82a3f5cf66672ff787b76.0" and
"SIP/2.0/UDP
217.12.247.212;branch=z9hG4bK5398.d5b303bd66f82a3f5cf66672ff787b76.1").

Then from endpoint Kamailio gets  100, 180 and 200 messages (packets 5, 6,
8, 9)  with appropriate branches in "VIA" header.

Then Kamailio in packet 11 send CANCEL for branch
"z9hG4bK5398.d5b303bd66f82a3f5cf66672ff787b76.1"
And in packet 13 send "ACK" with new branch "SIP/2.0/UDP
217.12.247.212;branch=z9hG4bK5398.8ba6e3c3c63533fae1ceff3074f476fb.0"
In packet 14 endpoint confirms CANCEL of call with branch
"z9hG4bK5398.d5b303bd66f82a3f5cf66672ff787b76.1".

And then in packet 16 strange message from Kamailio with branch
"SIP/2.0/UDP 217.12.247.212;branch=
z9hG4bK6398.f0bbae920c6f81401d10d39f23335696.0".

Could you suggest correct answer for following questions:

   1. are is kamailio incorrectly changes branch values in VIA header;
   2. what is RFC numbers where is described proxy behavior for branch
   value in "VIA" header.


Sergey Safarov

Interest page
https://andrewjprokop.wordpress.com/2014/03/06/understanding-the-sip-via-header/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160923/37e00442/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sip_broken_prixy.pcap
Type: application/vnd.tcpdump.pcap
Size: 12574 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160923/37e00442/attachment-0001.bin 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list