Yes, you can use this method,<div><br></div><div><a href="http://www.opensips.org/html/docs/modules/devel/textops.html#id250333">http://www.opensips.org/html/docs/modules/devel/textops.html#id250333</a></div><div><br></div>

<div>e.g. something like,</div><div><br></div><div>if (has_body(&quot;application/sdp&quot;) &amp;&amp; replace_body_atonce(&quot;a=schipmangle:yes&quot;, &quot;&quot;))</div><div><div>   xlog(&quot;Removed a=schipmangle:yes from carrier xxx&quot;);</div>

<div><br></div><div>Thank you.</div><div><br></div><div><br><div class="gmail_quote">On Fri, Feb 15, 2013 at 2:53 AM, Seth Schultz <span dir="ltr">&lt;<a href="mailto:sschultz@scholarchip.com" target="_blank">sschultz@scholarchip.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Muhammad,<br>
      <br>
      I don&#39;t know what the remote carrier is using for their RTP.  I
      set a custom nortpproxy_str to try and avoid this (instead of
      leaving it as the default a=nortpproxy:yes).  Is it correct for
      them to leave our custom a=schipmangled:yes record in the SDP?  I
      have had problems with the &quot;f&quot; flag and failover routing
      (basically rewrites the IP in the SDP twice like this
      yyy.yyy.yyy.yyyyyy.yyy.yyy.yyy).  Is there an easy way for me to
      just remove the a=schipmangle:yes in my onreply_route?<br>
      <br>
      Thanks,<br>
      Seth<div><div class="h5"><br>
      <br>
      On 2/14/2013 8:28 PM, Muhammad Shahzad wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">You mean both you and your carrier are using their own
      rtp-proxy? If so, then simply add &quot;f&quot; flag to rtpproxy_offer |
      rtpproxy_answer. Which will allow you can you carrier to create a
      chain of rtp-proxy together. See flags description here,<br>
      <br>
      <a href="http://www.opensips.org/html/docs/modules/devel/rtpproxy.html#id292744" target="_blank">http://www.opensips.org/html/docs/modules/devel/rtpproxy.html#id292744</a><br>
      <br>
      Thank you.<br>
      <br>
      <br>
      <div class="gmail_quote">On Fri, Feb 15, 2013 at 2:18 AM, Seth
        Schultz <span dir="ltr">&lt;<a href="mailto:sschultz@scholarchip.com" target="_blank">sschultz@scholarchip.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
          <br>
          I am having a problem with RTPProxy where in the reply, the
          remote carrier is sending the &quot;nortpproxy_str&quot; in the reply
          SDP (example below).  I would like to know what the best way
          is to detect this, and remove it from the sip message before
          calling rtpproxy_answer function, because rtpproxy_answer will
          fail if the nortpproxy_str already exists in the SDP.<br>
          <br>
          Thanks in advance,<br>
          Seth<br>
          <br>
          U 2013/02/14 19:32:21.142567 yyy.yyy.yyy.yyy:5060 -&gt;
          xxx.xxx.xxx.xxx:5060<br>
          INVITE <a href="mailto:sip:19999999999@xxx.xxx.xxx.xxx" target="_blank">sip:19999999999@xxx.xxx.xxx.xxx</a> SIP/2.0<br>
          Via: SIP/2.0/UDP yyy.yyy.yyy.yyy:5060;branch=z9hG4bK2d9e.187ebf5.0<br>
          Max-Forwards: 69<br>
          From: &quot;Unknown&quot; <a href="mailto:sip:19999999999@yyy.yyy.yyy.yyy" target="_blank">&lt;sip:19999999999@yyy.yyy.yyy.yyy&gt;</a>;tag=33XjNy6SQZrQS<br>
          To: <a href="mailto:sip:19999999999@yyy.yyy.yyy.yyy" target="_blank">&lt;sip:19999999999@yyy.yyy.yyy.yyy&gt;</a><br>
          Call-ID: 004c5840-f1aa-1230-9c93-6320dec8e883<br>
          CSeq: 40108106 INVITE<br>
          Contact: &lt;sip:yyy.yyy.yyy.yyy;did=3901.59b3bb21&gt;<br>
          User-Agent: FS1<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: 247<br>
          P-Call-Type: Notification<br>
          X-FS-Support: update_display,send_info<br>
          Remote-Party-ID: &quot;Unknown&quot; <a href="mailto:sip:19999999999@yyy.yyy.yyy.yyy" target="_blank">&lt;sip:19999999999@yyy.yyy.yyy.yyy&gt;</a>;party=calling;screen=yes;privacy=off<br>
          <br>
          v=0<br>
          o=FreeSWITCH 1360855702 1360855703 IN IP4 yyy.yyy.yyy.yyy<br>
          s=FreeSWITCH<br>
          c=IN IP4 yyy.yyy.yyy.yyy<br>
          t=0 0<br>
          m=audio 40562 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=schipmangled:yes  &lt;--- rtpproxy added this on initial
          invite<br>
          <br>
          ...<br>
          <br>
          U 2013/02/14 19:32:37.425606 xxx.xxx.xxx.xxx:5060 -&gt;
          yyy.yyy.yyy.yyy:5060<br>
          SIP/2.0 200 OK<br>
          Via: SIP/2.0/UDP yyy.yyy.yyy.yyy:5060;branch=z9hG4bK2d9e.187ebf5.0<br>
          From: &quot;Unknown&quot; <a href="mailto:sip:19999999999@yyy.yyy.yyy.yyy" target="_blank">&lt;sip:19999999999@yyy.yyy.yyy.yyy&gt;</a>;tag=33XjNy6SQZrQS<br>
          To: <a href="mailto:sip:19999999999@yyy.yyy.yyy.yyy" target="_blank">&lt;sip:19999999999@yyy.yyy.yyy.yyy&gt;</a>;tag=SDs07f299-gK0e9f2e8d<br>
          Call-ID: 004c5840-f1aa-1230-9c93-6320dec8e883<br>
          CSeq: 40108106 INVITE<br>
          Accept: application/sdp, application/isup, application/dtmf,
          application/dtmf-relay,  multipart/mixed<br>
          Contact: &lt;sip:xxx.xxx.xxx.xxx;did=39.60d51ef&gt;<br>
          Allow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,PRACK,UPDATE,OPTIONS<br>
          Require: timer<br>
          Supported: timer<br>
          Session-Expires: 7200;refresher=uas<br>
          Content-Length: 259<br>
          Content-Disposition: session; handling=required<br>
          Content-Type: application/sdp<br>
          <br>
          v=0<br>
          o=Sonus_UAC 7607 20874 IN IP4 xxx.xxx.xxx.xxx<br>
          s=SIP Media Capabilities<br>
          c=IN IP4 xxx.xxx.xxx.xxx<br>
          t=0 0<br>
          m=audio 29772 RTP/AVP 0 101<br>
          a=rtpmap:101 telephone-event/8000<br>
          a=fmtp:101 0-16<br>
          a=silenceSupp:off - - - -<br>
          a=schipmangled:yes  &lt;--- they sent this back in the 200 OK
          reply<br>
          a=ptime:20<br>
          a=sendrecv<br>
          <br>
          <br>
          _______________________________________________<br>
          Users mailing list<br>
          <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
          <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
      -- <br>
      <span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">Muhammad
        Shahzad</span><br style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">
      <span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">------------------------------</span><span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">-----</span><br style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">


      <span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">CISCO
        Rich Media Communication Specialist (CRMCS)</span><br style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">
      <span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">CISCO
        Certified Network Associate (CCNA)</span><br style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">
      <span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">Cell: +49
        176 99 83 10 85</span><br style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">
      <span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">MSN: </span><a href="mailto:shari_786pk@hotmail.com" style="color:rgb(17,85,204);font-size:13px;font-family:arial,sans-serif" target="_blank">shari_786pk@hotmail.com</a><br style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">


      <span style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">Email: </span><a href="mailto:shaheryarkh@googlemail.com" style="color:rgb(17,85,204);font-size:13px;font-family:arial,sans-serif" target="_blank">shaheryarkh@googlemail.com</a>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Muhammad Shahzad</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">------------------------------</span><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">-----</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">CISCO Rich Media Communication Specialist (CRMCS)</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">CISCO Certified Network Associate (CCNA)</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Cell: +49 176 99 83 10 85</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">MSN: </span><a href="mailto:shari_786pk@hotmail.com" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank">shari_786pk@hotmail.com</a><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Email: </span><a href="mailto:shaheryarkh@googlemail.com" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank">shaheryarkh@googlemail.com</a>
</div></div>