<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    I am a bit surprised by this behaviour in freeswitch. Do you have a
    link on the discussion you had on freeswitch forums? Maybe I can
    understand better from there what is the problem.<br>
    <br>
    In this case, it should be different also the branch parameter in
    top Via of the request received by freeswitch. Practically, this is
    SIP serial forking, one of the basic flows in SIP.<br>
    <br>
    From kamailio point of view as well as SIP specs, CSeq must not be
    increased in this case.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 2/28/13 6:45 PM, Camila Troncoso
      wrote:<br>
    </div>
    <blockquote
      cite="mid:81c48ce89627acab1bdb41f57ade17c1@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style>
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Daniel,
          </span></p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Any
            further Help you can give me?</span></p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Regards,
          </span></p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Camila</span></p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"> </span></p>
        <div>
          <div style="border:none;border-top:solid #b5c4df
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"
                lang="EN-US"> Camila Troncoso [mailto:<a
                  moz-do-not-send="true"
                  href="mailto:ctroncoso@redvoiss.net">ctroncoso@redvoiss.net</a>]
                <br>
                <b>Sent:</b> jueves, 21 de febrero de 2013 9:52<br>
                <b>To:</b> '<a moz-do-not-send="true"
                  href="mailto:miconda@gmail.com">miconda@gmail.com</a>';
                'SIP Router - Kamailio (OpenSER) and SIP Express Router
                (SER) - Users Mailing List'<br>
                <b>Subject:</b> RE: [SR-Users] Kamailio not increasing
                cseq</span></p>
          </div>
        </div>
        <p class="MsoNormal"> </p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Hi
            Daniel, </span></p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">In
            deed the Ruri is the only difference with the second invite.</span></p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">For
            the first Invite,  I received an “503 Service unavailable”
            from the gateway , it goues trough the SBC and it is pass to
            the LCR so it reroutes the call to the second gateway in the
            cloud.</span></p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">I
            asked in FreeSWITCH forum for this issue and they said that
            the problem is Cseq not increasing, Freeswitch doesn’t take
            Ruri as compare.</span></p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Regards,</span></p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Camila</span></p>
        <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"> </span></p>
        <div>
          <div style="border:none;border-top:solid #b5c4df
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"
                lang="EN-US"> <a moz-do-not-send="true"
                  href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a>
                [<a moz-do-not-send="true"
                  href="mailto:sr-users-bounces@lists.sip-router.org">mailto:sr-users-bounces@lists.sip-router.org</a>]
                <b>On Behalf Of </b>Daniel-Constantin Mierla<br>
                <b>Sent:</b> jueves, 21 de febrero de 2013 5:08<br>
                <b>To:</b> SIP Router - Kamailio (OpenSER) and SIP
                Express Router (SER) - Users Mailing List<br>
                <b>Subject:</b> Re: [SR-Users] Kamailio not increasing
                cseq</span></p>
          </div>
        </div>
        <p class="MsoNormal"> </p>
        <p class="MsoNormal" style="margin-bottom:12.0pt">Hello,</p>
        <div>
          <p class="MsoNormal">On 2/20/13 7:44 PM, Camila Troncoso
            wrote:</p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal">Hi all,</p>
          <p class="MsoNormal"><span lang="EN-US"> </span></p>
          <p class="MsoNormal"><span lang="EN-US">I’m working for a
              while with Kamailio+Freeswitch as SBC.</span></p>
          <p class="MsoNormal"><span lang="EN-US"> </span></p>
          <p class="MsoNormal"><span lang="EN-US">I have this structure:</span></p>
          <p class="MsoNormal"> </p>
          <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"
                lang="EN-US"> </span></b></p>
          <p class="MsoNormal"><span lang="EN-US">When I make a call
              from one client connected to LCR,  it is route to my SBC
              and afterwards to his destiny in the cloud passing though
              a gateway. When the destiny is unreachable, the LCR
              reroutes the call to another gateway. Sometimes the LCR
              send this retry again to the SBC , because the second
              gateway is also in the cloud, but when this happens,
              FreeSWITCH answer with :</span></p>
          <p class="MsoNormal"><span lang="EN-US">“482 Request merged”
              because it detects that is the same call.</span></p>
          <p class="MsoNormal"><span lang="EN-US">This is because the
              second INVITE has the same Call-ID and same Cseq. Kamailio
              <b>is not</b> increasing CSeq.</span></p>
          <p class="MsoNormal"><span lang="EN-US"> </span></p>
          <p class="MsoNormal"><span lang="EN-US">Is there a way to
              resolve this?</span></p>
        </blockquote>
        <p class="MsoNormal" style="margin-bottom:12.0pt"><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;">it is a second branch, the
            top via header of the second invite should have a different
            branch parameter than the previous one. Freeswitch should
            detect that and handle it as a separate branch of the call,
            too. Try changing the r-uri a bit and see if works (e.g.,
            set a prefix that you remove it if set), as an workaround.<br>
            <br>
            Also, is the CANCEL sent to Freeswitch for first branch? Or
            is Freeswitch sending a negative reply?<br>
            <br>
            Cheers,<br>
            Daniel</span></p>
        <p class="MsoNormal" style="margin-bottom:12.0pt"><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;"> </span></p>
        <pre>-- </pre>
        <pre>Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com">http://www.asipto.com</a></pre>
        <pre><a moz-do-not-send="true" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
        <pre>Kamailio World Conference, April 16-17, 2013, Berlin</pre>
        <pre> - <a moz-do-not-send="true" href="http://conference.kamailio.com">http://conference.kamailio.com</a> -</pre>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, April 16-17, 2013, Berlin
 - <a class="moz-txt-link-freetext" href="http://conference.kamailio.com">http://conference.kamailio.com</a> -</pre>
  </body>
</html>