Try like this and see if it works?<div><br></div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">if (is_method("INVITE") || status=="200" || status=="183") {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Arial"><span style="font: 12.0px Helvetica"> <span class="Apple-tab-span" style="white-space:pre">        </span></span>replace_body("723/8000", "G723/8000-test");</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">}</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"><br></p><br><div class="gmail_quote">On Mon, Nov 16, 2009 at 7:48 PM, Daryl G. Jurbala <span dir="ltr"><<a href="mailto:daryl@introspect.net">daryl@introspect.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">So I have a related issue.....<br>
<br>
UA ==== OpenSIPS ==== Dialogic IMG<br>
<br>
The Dialogic likes to send back a media attribute of "bitrate:5.3" in the SDP when negotiating G723 . This is fine for most UAs, but it breaks Linksys PAP2's. I've tried all sorts of things so far, and gotten down to a very simple:<br>
<br>
replace_body("a=bitrate:5.3", "a=bitrate:999");<br>
<br>
in my main routing block. It's not having any affect.<br>
<br>
To test, I put a "replace_body("723/8000", "G723/8000-test");" in the same place. It mangles the SDP between the OpenSIPS box and the Dialogic IMG on the INVITE, but the 183 and 200 coming back from the IMG through the OpenSIPS to the UA remains untouched.<br>
<br>
I'm sure I'm missing something basic here, so a pointer in the right direction would be very helpful.<br>
<br>
Thanks,<br>
<font color="#888888">Daryl<br>
</font><div><div></div><div class="h5"><br>
<br>
<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>
</div></div></blockquote></div><br></div>