<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>good to know -- useful information to have in mind.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 08/03/2017 09:49, Grant Bagdasarian
      wrote:<br>
    </div>
    <blockquote cite="mid:cb8c102a92f94bc297b812ea65155502@cm.nl"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Word 15 (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: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:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        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.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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"><span style="color:windowtext" lang="NL">Hi
            Daniel,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext" lang="NL"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext">Thank you
            for the answer.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext">I’ve also
            asked the same question on the rtpengine github page and
            they suggested to try the asymmetric flag and that fixed the
            issue.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext">Another fix
            has been suggested, but I haven’t tried it yet.
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext">For anyone
            else interested in the same issue:<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext"><a
              moz-do-not-send="true"
              href="https://github.com/sipwise/rtpengine/issues/330">https://github.com/sipwise/rtpengine/issues/330</a><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext">Regards,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext">Grant
            Bagdasarian<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext">CM<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
                style="color:windowtext"> sr-users
                [<a class="moz-txt-link-freetext" 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> dinsdag 7 maart 2017 23:06<br>
                <b>To:</b> Kamailio (SER) - Users Mailing List
                <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></a><br>
                <b>Subject:</b> Re: [SR-Users] rtpengine sending rtp to
                wrong endpoint after reinvite<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p>Hello,<span style="font-size:12.0pt"><o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal">On 07/03/2017 13:10, Grant Bagdasarian
            wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal"><span lang="NL">Hi,</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="NL"> </span><o:p></o:p></p>
          <p class="MsoNormal">One of our customers is using a SEMS box
            to place two outbound calls using our sip trunk.
            <o:p></o:p></p>
          <p class="MsoNormal">Once the first call is connected a second
            call is placed and when the second call answers their server
            sends a re-invite to switch audio ports so the rtp traffic
            doesn’t flow through their server anymore but is routed
            inside our platform.<o:p></o:p></p>
          <p class="MsoNormal">Basically, they just switch SDP’s of both
            calls. <o:p></o:p></p>
          <p class="MsoNormal">It seems like a random issue, and is not
            really reproducible, except for placing multiple calls and
            sometimes both parties can hear each other, other times they
            can’t, because rtpengine fails (I think) to update the
            endpoint and keeps sending rtp back to their server for one
            of the call legs.<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal">We tried to reproduce the case using a
            freeswitch box and it worked every time. After the reinvite,
            the rtp remained within our platform.<o:p></o:p></p>
          <p class="MsoNormal">The signaling in both cases still goes
            through the freeswitch or sems for call control.
            <o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal">Does anyone have experience with this
            case? Or seen the issue before where rtpengine keeps sending
            rtp to the original endpoint?<o:p></o:p></p>
        </blockquote>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif"><br>
            Have your checked to see if the sip messages are
            received/processed in the expected order?<br>
            <br>
            In some very rare situations, it happened that the re-invite
            was sent very fast by callee after just sending the 200ok,
            so that the re-invite arrived to the proxy/rtprelay before
            the 200ok, so at the end the sdp from 200ok was taken as the
            last relevant one for the peer. I put there rtprelay,
            because I faced this issue where I had rtpproxy, but maybe
            the issue is exposed by the rtpengine as well.<br>
            <br>
            Cheers,<br>
            Daniel<br>
            <br>
            <o:p></o:p></span></p>
        <pre>-- <o:p></o:p></pre>
        <pre>Daniel-Constantin Mierla<o:p></o:p></pre>
        <pre><a moz-do-not-send="true" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a><o:p></o:p></pre>
        <pre>Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a moz-do-not-send="true" href="http://www.asipto.com">www.asipto.com</a><o:p></o:p></pre>
        <pre>Kamailio World Conference - May 8-10, 2017 - <a moz-do-not-send="true" href="http://www.kamailioworld.com">www.kamailioworld.com</a><o:p></o:p></pre>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>