<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    you have to give all the BYE -- the best is to send from the first
    INVITE to the last BYE, because it matters how the record-route are
    built for INVITE.<br>
    <br>
    I suspect that the BYE comes with r-uri having kamailio address, if
    the old ser does fix natted contact (which should not do in this
    case).<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 11/20/13 3:03 PM, Igor Potjevlesch
      wrote:<br>
    </div>
    <blockquote cite="mid:011101cee5f9$4c9e8e40$e5dbaac0$@gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 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";
        mso-fareast-language:EN-US;}
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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
..MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hello,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span lang="EN-GB">I work on
            interconnecting an old SER version with Kamailio.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">When a BYE is sent by
            the old SER, the “if (loose_route)” instruction returns
            false and then a “404 Not here” is sent. So the BYE is not
            relay to the UA. <o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">If the BYE is sent by
            Kamailio, no problem.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">Here are the BYE headers
            received by Kamailio:<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">Record-Route: <a
              moz-do-not-send="true"
              href="sip:OLD_SER_IP_ADDRESS;ftag=e97b7b77c5a3a9cc;lr=on">sip:OLD_SER_IP_ADDRESS;ftag=e97b7b77c5a3a9cc;lr=on</a><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">Via: SIP/2.0/UDP
            OLD_SER_IP_ADDRESS;branch=z9hG4bKc9e5.3cbad207.0<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">Via: SIP/2.0/UDP
UA_IP_ADDRESS_CONNECTED_TO_OLD_SER:5060;rport=5060;branch=z9hG4bK1fbe0a49fe344e6af1efd45b74305a9a<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">Route: <a
              moz-do-not-send="true"
              href="sip:KAMAILIO_IP_ADDRESS;lr=on">sip:KAMAILIO_IP_ADDRESS;lr=on</a><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">I looked at the RR
            module documentation and it’s clearly said that “<span
              style="color:black">The loose_route function analyzes the
              Route: headers in the requests. […]If a Route: header is
              found, the function returns 1 and behaves as described in
              section 16.12 of RFC 3261.”.</span> <o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">Someone has an idea?<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">Regards,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">Igor.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
      </div>
      <br>
      <br>
      <hr style="border:none; color:#909090; background-color:#B0B0B0;
        height: 1px; width: 99%;">
      <table style="border-collapse:collapse;border:none;">
        <tbody>
          <tr>
            <td style="border:none;padding:0px 15px 0px 8px"> <a
                moz-do-not-send="true" href="http://www.avast.com/"> <img
                  moz-do-not-send="true"
                  src="http://static.avast.com/emails/avast-mail-stamp.png"
                  border="0"> </a> </td>
            <td>
              <p style="color:#3d4d5a;
                font-family:"Calibri","Verdana","Arial","Helvetica";
                font-size:12pt;"> Ce courrier électronique ne contient
                aucun virus ou logiciel malveillant parce que la
                protection <a moz-do-not-send="true"
                  href="http://www.avast.com/">Antivirus avast!</a> est
                active. </p>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </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 Advanced Trainings - Berlin, Nov 25-28
  - more details about Kamailio trainings at <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> -
</pre>
  </body>
</html>