<div><div dir="ltr"><div>Hi Laszlo,</div><div><br></div><div>Thanks, that works perfectly.  Now with it in front of me it does seem rather obvious.  :)</div><div><br></div><div><br></div><div><br></div><div>- Jeff</div><div>
<br>

<br></div></div></div>
<br><br><div class="gmail_quote">On Fri, Aug 16, 2013 at 5:55 PM, Laszlo <span dir="ltr">&lt;<a href="mailto:laszlo@voipfreak.net" target="_blank">laszlo@voipfreak.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>Hi Jeff,<br><br>codec_delete_except_re(&quot;PCMU|tel&quot;);<br></div>should do the trick.<br><br></div>-Laszlo<br><div><div><div></div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">


2013/8/16 Jeff Pyle <span dir="ltr">&lt;<a href="mailto:jpyle@fidelityvoice.com" target="_blank">jpyle@fidelityvoice.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">

<div><div dir="ltr"><div>Hello,</div><div><br></div><div>This is on OpenSIPS 1.9.</div><div><br></div><div>I want to remove all audio codecs except PCMU from an SDP.  I have the following config:</div><div><br></div><div>


<div>
        if (codec_exists(&quot;PCMU&quot;)) {</div><div>                codec_delete_except_re(&quot;PCMU&quot;);</div><div>        } else {</div><div>                send_reply(&quot;488&quot;, &quot;PCMU required&quot;);</div>



<div>                exit;</div><div>        }</div></div><div><br></div><div>It does exactly what it&#39;s supposed to do, leaving only PCMU in the SDP.  The problem is that it also removes the RFC2833 definition.</div>


<div>
<br></div><div>Codecs in:</div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div dir="ltr"><div><div>m=audio 16414 RTP/AVP 9 0 18 101.</div></div></div></div><div><div dir="ltr"><div><div>



a=rtpmap:9 G722/8000.</div></div></div></div><div><div dir="ltr"><div><div>a=rtpmap:0 PCMU/8000.</div></div></div></div><div><div dir="ltr"><div><div>a=rtpmap:18 G729/8000.</div></div></div></div><div><div dir="ltr"><div>



<div>a=fmtp:18 annexb=no.</div></div></div></div><div><div dir="ltr"><div><div>a=rtpmap:101 telephone-event/8000.</div></div></div></div></blockquote><div><div dir="ltr"><div><br></div><div>Codecs out:</div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">



<div><div dir="ltr"><div><div><div>m=audio 16414 RTP/AVP 0 .</div><div>a=rtpmap:0 PCMU/8000.</div></div></div><div><br></div></div></div></blockquote><div><div dir="ltr">Perhaps the correct question to ask is how to delete everything except PCMU <i>and</i> telephone-event?</div>



</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Regards,</div><div dir="ltr">Jeff</div><div dir="ltr"><br></div></div></div></blockquote></div><span class="HOEnZb"><font color="#888888"><div dir="ltr">
<div><div><div><br>--<br></div>Kind regards,<br></div>Laszlo Bekesi<br></div><a href="http://voipfreak.net" target="_blank">http://voipfreak.net</a><br>

</div>
</font></span></div>
</blockquote></div><br>