<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Bogdan,<br>
      <br>
      There aren't any other entries in the log file which would
      indicate something is wrong with the call.&nbsp; I have provided a
      summary of call/rtp flow, code snippets for onreply_routes, and a
      sip trace below showing where rtpproxy_answer (in the
      onreply_route) failed.&nbsp; When rtpproxy_answer fails, the external
      media IP is sent to my internal agent, which causes routing issues
      sending the RTP stream.&nbsp; I am using RTPProxy bridging (ie and ei
      flags depending on the direction).&nbsp; Please see my notes below and
      in the traces.<br>
      <br>
      You can clearly see that on the 183 and 200, rtpproxy_answer isn't
      doing it's job (I just wish I knew why).<br>
      <br>
      Any and all help is greatly appreciated.<br>
      <br>
      Thanks,<br>
      Seth<br>
      <br>
      Outbound SIP Routing:<br>
      Internal Agent (172.16.1.103) -&gt; OpenSIPS (172.16.1.2)
      172.16.1.2 is rewritten to xxx.yyy.115.19 -&gt; External Gateway
      (xxx.yyy.109.229)<br>
      <br>
      Outbound RTP Routing:<br>
      Internal Agent (172.16.1.103) -&gt; RTPProxy (172.16.1.111)
      172.16.1.111 is rewritten to xxx.yyy.115.20 -&gt; External Agent
      (xxx.yyy.109.231)<br>
      <br>
      Inbound SIP Routing:<br>
      External Gateway (xxx.yyy.109.229) -&gt; OpenSIPS (xxx.yyy.115.19)
      xxx.yyy.115.19 is rewritten to 172.16.1.2 -&gt; Internal Agent
      (172.16.1.103)<br>
      <br>
      Inbound RTP Routing:<br>
      External Agent (xxx.yyy.109.231) -&gt; RTPProxy (xxx.yyy.115.20)
      xxx.yyy.115.20 is rewritten to 172.16.1.111 -&gt; Internal Agent
      (172.16.1.103)<br>
      <br>
      Here are snippets of my onreply_route blocks:<br>
      <br>
      ...<br>
      onreply_route[INBOUND]<br>
      {<br>
      &nbsp;&nbsp;&nbsp; #Handle rewriting critical IP addresses<br>
      &nbsp;&nbsp;&nbsp; route(REWRITE);<br>
      <br>
      &nbsp;&nbsp;&nbsp; xlog("L_WARN", "\nCR -----&gt; PR -----&gt; CE
      $dlg_val(called) $ci $cs $rm $rs $rr onreply_route[INBOUND]");<br>
      <br>
      &nbsp;&nbsp;&nbsp; if (!t_was_cancelled() &amp;&amp; has_body("application/sdp"))<br>
      &nbsp;&nbsp;&nbsp; {<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #Enable RTPProxy with internal-&gt;external flags<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!rtpproxy_answer("ieor"))<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("L_ERR", "\nieor UNABLE TO NEGOTIATE MEDIA
      $dlg_val(called) $ci $cs $rm $rs $rr $rd route[INBOUND]");<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
      &nbsp;&nbsp;&nbsp; }<br>
      <br>
      &nbsp;&nbsp;&nbsp; exit;<br>
      }<br>
      ...<br>
      onreply_route[OUTBOUND]<br>
      {<br>
      &nbsp;&nbsp;&nbsp; #Handle rewriting critical IP addresses<br>
      &nbsp;&nbsp;&nbsp; route(REWRITE);<br>
      <br>
      &nbsp;&nbsp;&nbsp; xlog("L_WARN", "\nCR &lt;----- PR &lt;----- CE
      $dlg_val(called) $ci $cs $rm $rs $rr onreply_route[OUTBOUND]");<br>
      <br>
      &nbsp;&nbsp;&nbsp; if (!t_was_cancelled() &amp;&amp; has_body("application/sdp"))<br>
      &nbsp;&nbsp;&nbsp; {<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #Enable RTPProxy with external-&gt;internal flags<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!rtpproxy_answer("eior"))<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("L_ERR", "\nieor UNABLE TO NEGOTIATE MEDIA
      $dlg_val(called) $ci $cs $rm $rs $rr $rd route[OUTBOUND]");<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
      &nbsp;&nbsp;&nbsp; }<br>
      <br>
      &nbsp;&nbsp;&nbsp; exit;<br>
      }<br>
      ...<br>
      <br>
      CALL SIP TRACE (with masking and notes):<br>
      <br>
      udp:172.16.1.103:5060 -&gt; udp:172.16.1.2:5060<br>
      INVITE <a class="moz-txt-link-abbreviated" href="mailto:sip:XXXXXXX4764@172.16.1.2">sip:XXXXXXX4764@172.16.1.2</a> SIP/2.0<br>
      Via: SIP/2.0/UDP 172.16.1.103;rport;branch=z9hG4bKK5g6rgKDm91rF<br>
      Max-Forwards: 69<br>
      From: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a><br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504466 INVITE<br>
      Contact:
      <a class="moz-txt-link-rfc2396E" href="mailto:sip:gw+opensips@172.16.1.103:5060;transport=udp;gw=opensips">&lt;sip:gw+opensips@172.16.1.103:5060;transport=udp;gw=opensips&gt;</a><br>
      User-Agent: FS<br>
      Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
      REGISTER, REFER, NOTIFY<br>
      Supported: timer, precondition, path, replaces<br>
      Allow-Events: talk, hold, refer<br>
      Content-Type: application/sdp<br>
      Content-Disposition: session<br>
      Content-Length: 229<br>
      X-FS-Support: update_display,send_info<br>
      Remote-Party-ID: "Masked"
      <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;party=calling;screen=yes;privacy=off<br>
      <br>
      v=0<br>
      o=FreeSWITCH 1351653721 1351653722 IN IP4 172.16.1.103<br>
      s=FreeSWITCH<br>
      c=IN IP4 172.16.1.103<br>
      t=0 0<br>
      m=audio 27340 RTP/AVP 0 8 3 101<br>
      a=rtpmap:101 telephone-event/8000<br>
      a=fmtp:101 0-16<br>
      a=silenceSupp:off - - - -<br>
      a=ptime:20<br>
      <br>
      <br>
      udp:172.16.1.2:5060 -&gt; udp:xxx.yyy.109.229:5060<br>
      INVITE <a class="moz-txt-link-abbreviated" href="mailto:sip:999150XXXXXXX4764@gw.arctele.com">sip:999150XXXXXXX4764@gw.arctele.com</a> SIP/2.0<br>
      Via: SIP/2.0/UDP xxx.yyy.115.19;branch=z9hG4bK3065.5c632bf5.0<br>
      Max-Forwards: 69<br>
      From: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a><br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504466 INVITE<br>
      Contact: &lt;sip:xxx.yyy.115.19;did=2b1.52134a52&gt;<br>
      User-Agent: FS<br>
      Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
      REGISTER, REFER, NOTIFY<br>
      Supported: timer, precondition, path, replaces<br>
      Allow-Events: talk, hold, refer<br>
      Content-Type: application/sdp<br>
      Content-Disposition: session<br>
      Content-Length: 249<br>
      X-FS-Support: update_display,send_info<br>
      Remote-Party-ID: "Masked"
      <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;party=calling;screen=yes;privacy=off<br>
      <br>
      v=0<br>
      o=FreeSWITCH 1351653721 1351653722 IN IP4 xxx.yyy.115.20
      *rtpproxy_offer correctly rewrote 172.16.1.103 with RTPProxy
      external IP*<br>
      s=FreeSWITCH<br>
      c=IN IP4 xxx.yyy.115.20 *rtpproxy_offer correctly rewrote
      172.16.1.103 with RTPProxy external IP*<br>
      t=0 0<br>
      m=audio 36802 RTP/AVP 0 8 3 101<br>
      a=rtpmap:101 telephone-event/8000<br>
      a=fmtp:101 0-16<br>
      a=silenceSupp:off - - - -<br>
      a=ptime:20<br>
      a=nortpproxy:yes<br>
      <br>
      <br>
      udp:xxx.yyy.109.229 -&gt; udp:172.16.1.2:5060<br>
      SIP/2.0 100 trying -- your call is important to us<br>
      Via: SIP/2.0/UDP xxx.yyy.115.19;branch=z9hG4bK3065.5c632bf5.0<br>
      From: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a><br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504466 INVITE<br>
      Content-Length: 0<br>
      <br>
      <br>
      udp:xxx.yyy.109.229 -&gt; udp:172.16.1.2:5060<br>
      SIP/2.0 180 Ringing<br>
      Via: SIP/2.0/UDP xxx.yyy.115.19;branch=z9hG4bK3065.5c632bf5.0<br>
      Record-Route: &lt;sip:xxx.yyy.109.229;lr=on&gt;<br>
      From: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a>;tag=0r3t2jXaB8HrF<br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504466 INVITE<br>
      Contact:
      <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@xxx.yyy.109.231:5080;transport=udp">&lt;sip:XXXXXXX4764@xxx.yyy.109.231:5080;transport=udp&gt;</a><br>
      User-Agent: Masked<br>
      Accept: application/sdp<br>
      Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
      NOTIFY<br>
      Supported: timer, precondition, path, replaces<br>
      Allow-Events: talk, hold, conference, refer<br>
      Content-Length: 0<br>
      X-FS-Support: update_display,send_info<br>
      <br>
      <br>
      udp:172.16.1.2:5060 -&gt; udp:172.16.1.103:5060<br>
      SIP/2.0 180 Ringing<br>
      Via: SIP/2.0/UDP 172.16.1.103;rport;branch=z9hG4bKK5g6rgKDm91rF<br>
      From: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a>;tag=0r3t2jXaB8HrF<br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504466 INVITE<br>
      Contact: &lt;sip:172.16.1.2;did=2b1.52134a52&gt;<br>
      User-Agent: Masked<br>
      Accept: application/sdp<br>
      Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
      NOTIFY<br>
      Supported: timer, precondition, path, replaces<br>
      Allow-Events: talk, hold, conference, refer<br>
      Content-Length: 0<br>
      X-FS-Support: update_display,send_info<br>
      <br>
      <br>
      udp:xxx.yyy.109.229 -&gt; udp:172.16.1.2:5060<br>
      SIP/2.0 183 Session Progress<br>
      Via: SIP/2.0/UDP xxx.yyy.115.19;branch=z9hG4bK3065.5c632bf5.0<br>
      Record-Route: &lt;sip:xxx.yyy.109.229;lr=on&gt;<br>
      From: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a>;tag=0r3t2jXaB8HrF<br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504466 INVITE<br>
      Contact:
      <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@xxx.yyy.109.231:5080;transport=udp">&lt;sip:XXXXXXX4764@xxx.yyy.109.231:5080;transport=udp&gt;</a><br>
      User-Agent: Masked<br>
      Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
      NOTIFY<br>
      Supported: timer, precondition, path, replaces<br>
      Allow-Events: talk, hold, conference, refer<br>
      Content-Type: application/sdp<br>
      Content-Disposition: session<br>
      Content-Length: 300<br>
      X-FS-Support: update_display,send_info<br>
      <br>
      v=0<br>
      o=MASKED 2040649249 2040649250 IN IP4 xxx.yyy.109.231<br>
      s=MASKED<br>
      c=IN IP4 xxx.yyy.109.231<br>
      t=0 0<br>
      m=audio 18176 RTP/AVP 0 101<br>
      a=rtpmap:0 PCMU/8000<br>
      a=rtpmap:101 telephone-event/8000<br>
      a=fmtp:101 0-16<br>
      a=silenceSupp:off - - - -<br>
      a=nortpproxy:yes<br>
      a=mptime:20 -<br>
      a=ptime:20<br>
      <br>
      <br>
      udp:172.16.1.2:5060 -&gt; udp:172.16.1.103:5060<br>
      SIP/2.0 183 Session Progress<br>
      Via: SIP/2.0/UDP 172.16.1.103;rport;branch=z9hG4bKK5g6rgKDm91rF<br>
      From: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a>;tag=0r3t2jXaB8HrF<br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504466 INVITE<br>
      Contact: &lt;sip:172.16.1.2;did=2b1.52134a52&gt;<br>
      User-Agent: Masked<br>
      Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
      NOTIFY<br>
      Supported: timer, precondition, path, replaces<br>
      Allow-Events: talk, hold, conference, refer<br>
      Content-Type: application/sdp<br>
      Content-Disposition: session<br>
      Content-Length: 300<br>
      X-FS-Support: update_display,send_info<br>
      <br>
      v=0<br>
      o=MASKED 2040649249 2040649250 IN IP4 xxx.yyy.109.231
      *rtpproxy_answer failed and didn't correctly rewrite
      xxx.yyy.109.231 with 172.16.1.111*<br>
      s=MASKED<br>
      c=IN IP4 xxx.yyy.109.231 *rtpproxy_answer failed and didn't
      correctly rewrite xxx.yyy.109.231 with 172.16.1.111*<br>
      t=0 0<br>
      m=audio 18176 RTP/AVP 0 101<br>
      a=rtpmap:0 PCMU/8000<br>
      a=rtpmap:101 telephone-event/8000<br>
      a=fmtp:101 0-16<br>
      a=silenceSupp:off - - - -<br>
      a=nortpproxy:yes<br>
      a=mptime:20 -<br>
      a=ptime:20<br>
      <br>
      <br>
      udp:xxx.yyy.109.229 -&gt; udp:172.16.1.2:5060<br>
      SIP/2.0 200 OK<br>
      Via: SIP/2.0/UDP xxx.yyy.115.19;branch=z9hG4bK3065.5c632bf5.0<br>
      Record-Route: &lt;sip:xxx.yyy.109.229;lr=on&gt;<br>
      From: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a>;tag=0r3t2jXaB8HrF<br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504466 INVITE<br>
      Contact:
      <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@xxx.yyy.109.231:5080;transport=udp">&lt;sip:XXXXXXX4764@xxx.yyy.109.231:5080;transport=udp&gt;</a><br>
      User-Agent: Masked<br>
      Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
      NOTIFY<br>
      Supported: timer, precondition, path, replaces<br>
      Allow-Events: talk, hold, conference, refer<br>
      Content-Type: application/sdp<br>
      Content-Disposition: session<br>
      Content-Length: 300<br>
      X-FS-Support: update_display,send_info<br>
      <br>
      v=0<br>
      o=MASKED 2040649249 2040649250 IN IP4 xxx.yyy.109.231<br>
      s=MASKED<br>
      c=IN IP4 xxx.yyy.109.231<br>
      t=0 0<br>
      m=audio 18176 RTP/AVP 0 101<br>
      a=rtpmap:0 PCMU/8000<br>
      a=rtpmap:101 telephone-event/8000<br>
      a=fmtp:101 0-16<br>
      a=silenceSupp:off - - - -<br>
      a=nortpproxy:yes<br>
      a=mptime:20 -<br>
      a=ptime:20<br>
      <br>
      <br>
      udp:172.16.1.2:5060 -&gt; udp:172.16.1.103:5060<br>
      SIP/2.0 200 OK<br>
      Via: SIP/2.0/UDP 172.16.1.103;rport;branch=z9hG4bKK5g6rgKDm91rF<br>
      From: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a>;tag=0r3t2jXaB8HrF<br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504466 INVITE<br>
      Contact: &lt;sip:172.16.1.2;did=2b1.52134a52&gt;<br>
      User-Agent: Masked<br>
      Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
      NOTIFY<br>
      Supported: timer, precondition, path, replaces<br>
      Allow-Events: talk, hold, conference, refer<br>
      Content-Type: application/sdp<br>
      Content-Disposition: session<br>
      Content-Length: 300<br>
      X-FS-Support: update_display,send_info<br>
      <br>
      v=0<br>
      o=MASKED 2040649249 2040649250 IN IP4 xxx.yyy.109.231
      *rtpproxy_answer failed and didn't correctly rewrite
      xxx.yyy.109.231 with 172.16.1.111*<br>
      s=MASKED<br>
      c=IN IP4 xxx.yyy.109.231 *rtpproxy_answer failed and didn't
      correctly rewrite xxx.yyy.109.231 with 172.16.1.111*<br>
      t=0 0<br>
      m=audio 18176 RTP/AVP 0 101<br>
      a=rtpmap:0 PCMU/8000<br>
      a=rtpmap:101 telephone-event/8000<br>
      a=fmtp:101 0-16<br>
      a=silenceSupp:off - - - -<br>
      a=nortpproxy:yes<br>
      a=mptime:20 -<br>
      a=ptime:20<br>
      <br>
      <br>
      udp:172.16.1.103:5060 -&gt; udp:172.16.1.2:5060<br>
      ACK sip:172.16.1.2;did=2b1.52134a52 SIP/2.0<br>
      Via: SIP/2.0/UDP 172.16.1.103;rport;branch=z9hG4bKp59etaDcXNH0F<br>
      Max-Forwards: 69<br>
      From: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a>;tag=0r3t2jXaB8HrF<br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504466 ACK<br>
      Contact:
      <a class="moz-txt-link-rfc2396E" href="mailto:sip:gw+opensips@172.16.1.103:5060;transport=udp;gw=opensips">&lt;sip:gw+opensips@172.16.1.103:5060;transport=udp;gw=opensips&gt;</a><br>
      Content-Length: 0<br>
      <br>
      <br>
      udp:172.16.1.2:5060 -&gt; udp:xxx.yyy.109.229:5060<br>
      ACK <a class="moz-txt-link-abbreviated" href="mailto:sip:XXXXXXX4764@xxx.yyy.109.231:5080;transport=udp">sip:XXXXXXX4764@xxx.yyy.109.231:5080;transport=udp</a> SIP/2.0<br>
      Record-Route: &lt;sip:xxx.yyy.115.19;lr;ftag=jFFeX0H5cmNDK&gt;<br>
      Route: &lt;sip:xxx.yyy.109.229;lr=on&gt;<br>
      Via: SIP/2.0/UDP xxx.yyy.115.19;branch=z9hG4bK3065.5c632bf5.2<br>
      Max-Forwards: 69<br>
      From: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a>;tag=0r3t2jXaB8HrF<br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504466 ACK<br>
      Contact: &lt;sip:xxx.yyy.115.19;did=2b1.52134a52&gt;<br>
      Content-Length: 0<br>
      <br>
      <br>
      udp:xxx.yyy.109.229 -&gt; udp:172.16.1.2:5060<br>
      INFO sip:xxx.yyy.115.19;did=2b1.52134a52 SIP/2.0<br>
      Via: SIP/2.0/UDP xxx.yyy.109.229;branch=z9hG4bK6e65.6f3e25d3.0<br>
      Via: SIP/2.0/UDP
      xxx.yyy.109.231:5080;rport=5080;branch=z9hG4bKgr80UvtF7XcgQ<br>
      Max-Forwards: 68<br>
      From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a>;tag=0r3t2jXaB8HrF<br>
      To: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504475 INFO<br>
      Contact:
      <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@xxx.yyy.109.231:5080;transport=udp">&lt;sip:XXXXXXX4764@xxx.yyy.109.231:5080;transport=udp&gt;</a><br>
      User-Agent: Masked<br>
      Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
      NOTIFY<br>
      Supported: timer, precondition, path, replaces<br>
      Content-Type: message/update_display<br>
      Content-Length: 0<br>
      X-FS-Display-Name: Outbound Call<br>
      X-FS-Display-Number: 999900016XXXXXXX4764<br>
      Path:
      &lt;sip:xxx.yyy.109.229;lr;received='sip:xxx.yyy.109.231:5080'&gt;<br>
      <br>
      <br>
      udp:172.16.1.2:5060 -&gt; udp:172.16.1.103:5060<br>
      INFO <a class="moz-txt-link-abbreviated" href="mailto:sip:gw+opensips@172.16.1.103:5060;transport=udp;gw=opensips">sip:gw+opensips@172.16.1.103:5060;transport=udp;gw=opensips</a>
      SIP/2.0<br>
      Record-Route: &lt;sip:172.16.1.2;lr;ftag=0r3t2jXaB8HrF&gt;<br>
      Via: SIP/2.0/UDP 172.16.1.2;branch=z9hG4bK6e65.921d9907.0<br>
      Max-Forwards: 68<br>
      From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a>;tag=0r3t2jXaB8HrF<br>
      To: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504475 INFO<br>
      Contact: &lt;sip:172.16.1.2;did=2b1.52134a52&gt;<br>
      User-Agent: Masked<br>
      Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
      NOTIFY<br>
      Supported: timer, precondition, path, replaces<br>
      Content-Type: message/update_display<br>
      Content-Length: 0<br>
      X-FS-Display-Name: Outbound Call<br>
      X-FS-Display-Number: 999900016XXXXXXX4764<br>
      Path:
      &lt;sip:xxx.yyy.109.229;lr;received='sip:xxx.yyy.109.231:5080'&gt;<br>
      <br>
      <br>
      udp:172.16.1.103:5060 -&gt; udp:172.16.1.2:5060<br>
      SIP/2.0 200 OK<br>
      Via: SIP/2.0/UDP 172.16.1.2;branch=z9hG4bK6e65.921d9907.0<br>
      From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a>;tag=0r3t2jXaB8HrF<br>
      To: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504475 INFO<br>
      User-Agent: FS<br>
      Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
      REGISTER, REFER, NOTIFY<br>
      Supported: timer, precondition, path, replaces<br>
      Content-Length: 0<br>
      <br>
      <br>
      udp:172.16.1.2:5060 -&gt; udp:xxx.yyy.109.229:5060<br>
      SIP/2.0 200 OK<br>
      Via: SIP/2.0/UDP xxx.yyy.109.229;branch=z9hG4bK6e65.6f3e25d3.0<br>
      Via: SIP/2.0/UDP
      xxx.yyy.109.231:5080;rport=5080;branch=z9hG4bKgr80UvtF7XcgQ<br>
      From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a>;tag=0r3t2jXaB8HrF<br>
      To: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504475 INFO<br>
      User-Agent: FS<br>
      Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
      REGISTER, REFER, NOTIFY<br>
      Supported: timer, precondition, path, replaces<br>
      Content-Length: 0<br>
      <br>
      <br>
      udp:xxx.yyy.109.229 -&gt; udp:172.16.1.2:5060<br>
      BYE sip:xxx.yyy.115.19;did=2b1.52134a52 SIP/2.0<br>
      Via: SIP/2.0/UDP xxx.yyy.109.229;branch=z9hG4bK3e65.b4b0e3a3.0<br>
      Via: SIP/2.0/UDP
      xxx.yyy.109.231:5080;rport=5080;branch=z9hG4bKUUyHF6Kp7Z1Xp<br>
      Max-Forwards: 68<br>
      From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a>;tag=0r3t2jXaB8HrF<br>
      To: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504476 BYE<br>
      Contact:
      <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@xxx.yyy.109.231:5080;transport=udp">&lt;sip:XXXXXXX4764@xxx.yyy.109.231:5080;transport=udp&gt;</a><br>
      User-Agent: Masked<br>
      Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
      NOTIFY<br>
      Supported: timer, precondition, path, replaces<br>
      Reason: Q.850;cause=16;text="NORMAL_CLEARING"<br>
      Content-Length: 0<br>
      Path:
      &lt;sip:xxx.yyy.109.229;lr;received='sip:xxx.yyy.109.231:5080'&gt;<br>
      <br>
      <br>
      udp:172.16.1.2:5060 -&gt; udp:172.16.1.103:5060<br>
      BYE <a class="moz-txt-link-abbreviated" href="mailto:sip:gw+opensips@172.16.1.103:5060;transport=udp;gw=opensips">sip:gw+opensips@172.16.1.103:5060;transport=udp;gw=opensips</a>
      SIP/2.0<br>
      Record-Route: &lt;sip:172.16.1.2;lr;ftag=0r3t2jXaB8HrF&gt;<br>
      Via: SIP/2.0/UDP 172.16.1.2;branch=z9hG4bK3e65.9a0e87c.0<br>
      Max-Forwards: 68<br>
      From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a>;tag=0r3t2jXaB8HrF<br>
      To: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504476 BYE<br>
      Contact: &lt;sip:172.16.1.2;did=2b1.52134a52&gt;<br>
      User-Agent: Masked<br>
      Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
      NOTIFY<br>
      Supported: timer, precondition, path, replaces<br>
      Reason: Q.850;cause=16;text="NORMAL_CLEARING"<br>
      Content-Length: 0<br>
      Path:
      &lt;sip:xxx.yyy.109.229;lr;received='sip:xxx.yyy.109.231:5080'&gt;<br>
      <br>
      <br>
      udp:172.16.1.103:5060 -&gt; udp:172.16.1.2:5060<br>
      SIP/2.0 200 OK<br>
      Via: SIP/2.0/UDP 172.16.1.2;branch=z9hG4bK3e65.9a0e87c.0<br>
      From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a>;tag=0r3t2jXaB8HrF<br>
      To: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504476 BYE<br>
      User-Agent: FS<br>
      Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
      REGISTER, REFER, NOTIFY<br>
      Supported: timer, precondition, path, replaces<br>
      Content-Length: 0<br>
      <br>
      <br>
      udp:172.16.1.2:5060 -&gt; udp:xxx.yyy.109.229:5060<br>
      SIP/2.0 200 OK<br>
      Via: SIP/2.0/UDP xxx.yyy.109.229;branch=z9hG4bK3e65.b4b0e3a3.0<br>
      Via: SIP/2.0/UDP
      xxx.yyy.109.231:5080;rport=5080;branch=z9hG4bKUUyHF6Kp7Z1Xp<br>
      From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:XXXXXXX4764@172.16.1.2">&lt;sip:XXXXXXX4764@172.16.1.2&gt;</a>;tag=0r3t2jXaB8HrF<br>
      To: "Masked" <a class="moz-txt-link-rfc2396E" href="mailto:sip:YYYYYY0575@172.16.1.2">&lt;sip:YYYYYY0575@172.16.1.2&gt;</a>;tag=jFFeX0H5cmNDK<br>
      Call-ID: a1d3a859-9dec-1230-51a9-85d0a5d992c4<br>
      CSeq: 35504476 BYE<br>
      User-Agent: FS<br>
      Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
      REGISTER, REFER, NOTIFY<br>
      Supported: timer, precondition, path, replaces<br>
      Content-Length: 0<br>
      <br>
      <br>
      On 10/29/2012 7:44 AM, Bogdan-Andrei Iancu wrote:<br>
    </div>
    <blockquote cite="mid:508E6C2C.6050908@opensips.org" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <tt>Hi Seth,<br>
        <br>
        The function can fail in several cases: parsing error for reply,
        cannot contact rtpproxy, invalid reply from rtpproxy, etc.<br>
        <br>
        Aside you script xlog, do you get any other err messages in the
        script before the xlog (from the same process) - it might give a
        hint on the internal failure of the function.<br>
        <br>
        Regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      <br>
      On 10/26/2012 11:54 PM, Seth Schultz wrote:
      <blockquote cite="mid:508AF890.5030909@scholarchip.com"
        type="cite">
        <meta http-equiv="content-type" content="text/html;
          charset=ISO-8859-1">
        Hello,<br>
        <br>
        I am having an issue where rtpproxy_answer is failing in my
        onreply_route block when processing 183 or 200 packets (snippet
        below).&nbsp; This only happens on about 1% of the total call volume.<br>
        <blockquote>if (!rtpproxy_answer("eior"))<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("L_ERR", "UNABLE TO NEGOTIATE MEDIA");<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
        </blockquote>
        <ol>
          <li>How can I determine what is causing rtpproxy_answer to
            fail?</li>
          <li>In what circumstances should I expect rtpproxy_answer to
            fail?</li>
          <li>What action should I take if this happens?<br>
          </li>
        </ol>
        <p>Thank you very much for your time,<br>
          Seth<br>
        </p>
        <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>