<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1">Hello Opensips Users,<br>
I thought I would share this with you because it had me scratching
my head for a while:<br>
<br>
I use the function codec_delete_except_re to remove all the codecs
in the SDP that RTPPROXY can't transcode, but I noticed problems
with T38 fax and with DTMF using RFC2833. I noticed that the
function was not only removing the codecs but also the T38
attribute and the 101 telephone event. Adding these to the
function solved the issue, code snip below...<br>
<br>
if(has_body("application/sdp")) {<br>
if (codec_exists("PCMU") || codec_exists("PCMA") ||
codec_exists("G729") || codec_exists("G722") ||
codec_exists("GSM") || stream_exists("image")) {<br>
codec_delete_except_re("PCMA|PCMU|G729|G722|GSM|t38|telephone-event");<br>
} else {<br>
send_reply("488","Not Acceptable Here");<br>
exit;<br>
}<br>
}<br>
</font><br>
<div class="moz-signature"><font size="-1"><font face="Verdana">Kind
regards,<br>
<br>
Adrian Fretwell<br>
A² Engineering Services<br>
</font></font><small><small><small><font face="Verdana"></font></small></small></small>
</div>
</body>
</html>