<div dir="ltr"><div><div><div>Hi Sergey,<br><br></div>Second INVITE is because of retransmission. Probably that why there is 1 at the end for second INVITE. That makes sense, cause when call is answered Kamailio cancel transaction with ID z9hG4bK5398.d5b303bd66f82a3f5cf66672ff787b76.1.<br><br></div>Branch parameter is identifying transaction. Bye is separate transaction and that why it has different branch parameter. ACK is separate transaction too, that why it has different branch parameter too.<br><br></div>Check image below for detailed info about transaction and dialog.<br><br><a href="http://www.kamailio.org/pub/ser/ser-releases/0.8.12/doc/html/figures/transaction.png">http://www.kamailio.org/pub/ser/ser-releases/0.8.12/doc/html/figures/transaction.png</a><br><div><br></div><div>With kind regards,<br><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Jurijs<br></div></div></div>
<br><div class="gmail_quote">On Fri, Sep 23, 2016 at 2:09 PM, Sergey Safarov <span dir="ltr">&lt;<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello gys</div><div>Could you please help me resolve issue with Kamailio.</div><div>In attached file call from freeswitch to endpoint via Kamailio proxy.</div><div>In packets 3 and 4 kamailio sends two INVITES with different branches in &quot;VIA&quot; header for IP 10.21.19.10 (&quot;SIP/2.0/UDP 217.12.247.212;branch=<wbr>z9hG4bK5398.<wbr>d5b303bd66f82a3f5cf66672ff787b<wbr>76.<font color="#ff0000">0</font>&quot; and &quot;SIP/2.0/UDP 217.12.247.212;branch=<wbr>z9hG4bK5398.<wbr>d5b303bd66f82a3f5cf66672ff787b<wbr>76.<font color="#ff0000">1</font>&quot;).</div><div><br></div><div>Then from endpoint Kamailio gets  100, 180 and 200 messages (packets 5, 6, 8, 9)  with appropriate branches in &quot;VIA&quot; header.</div><div><br></div><div>Then Kamailio in packet 11 send CANCEL for branch &quot;z9hG4bK5398.<wbr>d5b303bd66f82a3f5cf66672ff787b<wbr>76.<font color="#ff0000">1</font>&quot;</div><div>And in packet 13 send &quot;ACK&quot; with new branch &quot;SIP/2.0/UDP 217.12.247.212;branch=<wbr>z9hG4bK5398.<font color="#ff0000">8ba6e3c3c63533fae1<wbr>ceff3074f476fb</font>.0&quot;</div><div>In packet 14 endpoint confirms CANCEL of call with branch &quot;z9hG4bK5398.<wbr>d5b303bd66f82a3f5cf66672ff787b<wbr>76.<font color="#ff0000">1</font>&quot;.</div><div><br></div><div>And then in packet 16 strange message from Kamailio with branch &quot;SIP/2.0/UDP 217.12.247.212;branch=<font color="#0000ff">z9hG4bK6<wbr>398.<wbr>f0bbae920c6f81401d10d39f233356<wbr>96</font>.0&quot;.</div><div><br></div><div>Could you suggest correct answer for following questions:</div><div><ol><li><span style="line-height:1.5">are is kamailio incorrectly changes branch values in VIA header;</span><br></li><li><span style="line-height:1.5">what is RFC numbers where is described proxy behavior for branch value in &quot;VIA&quot; header.</span><br></li></ol></div></div><div><br></div><div>Sergey Safarov</div><div><br></div><div>Interest page <a href="https://andrewjprokop.wordpress.com/2014/03/06/understanding-the-sip-via-header/" target="_blank">https://andrewjprokop.<wbr>wordpress.com/2014/03/06/<wbr>understanding-the-sip-via-<wbr>header/</a></div><div><br></div></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>