<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 07/03/2017 13:10, Grant Bagdasarian
      wrote:<br>
    </div>
    <blockquote cite="mid:d5045a6087e7415a9963cd37c651dd90@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
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;}
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;}
@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 lang="NL">Hi,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="NL"><o:p> </o:p></span></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>
      </div>
    </blockquote>
    <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>
    <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>