Flavio,<br><br>Let me know how this goes. If you need a hand with the late negotiation stuff give us a shout. It&#39;s all documented here:<br><a href="http://wiki.freeswitch.org/wiki/Codec_negotiation#Late_Negotiation_.28requires_param.29">http://wiki.freeswitch.org/wiki/Codec_negotiation#Late_Negotiation_.28requires_param.29</a><br>
<br>We also cover it in the FS Cookbook; last recipe in chapter 2.<br><br>-MC<br><br><div class="gmail_quote">On Tue, Feb 26, 2013 at 10:43 AM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Inbound late negotiation and set the variable prior to answer.<br>
<br>
--<br>
Brian West<br>
<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a><br>
FreeSWITCH Solutions, LLC<br>
PO BOX PO BOX 2531<br>
Brookfield, WI 53008-2531<br>
Twitter: @FreeSWITCH_Wire<br>
T: <a href="tel:%2B1.918.420.9266" value="+19184209266">+1.918.420.9266</a>  |  F: <a href="tel:%2B1.918.420.9267" value="+19184209267">+1.918.420.9267</a>  |  M: +1.918.424.WEST<br>
iNUM: <a href="tel:%2B883%205100%201420%209266" value="+883510014209266">+883 5100 1420 9266</a><br>
ISN: 410*543<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Feb 26, 2013, at 10:52 AM, Flavio Goncalves &lt;<a href="mailto:flavio@sippulse.com">flavio@sippulse.com</a>&gt; wrote:<br>
<br>
&gt; Hi Brian,<br>
&gt;<br>
&gt; This setting was already set. For outbound calls it works just fine. For inbound calls, I can&#39;t disable the annexb. I need to reply (200 Ok) with annexb=no.<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Flavio E. Goncalves<br>
&gt; CTO - SipPulse Routing and Billing Solutions for SIP<br>
&gt;<br>
&gt; 2013/2/25 Brian West &lt;<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt;<br>
&gt; Try setting this variable:<br>
&gt;<br>
&gt; sip_append_audio_sdp=a=fmtp:18 annexb=no<br>
&gt;<br>
&gt; Can you verify that your provider is actually sending CN on 19 and NOT 13.  There are some Sonus switches that say 19 but mean 13 and send on 13.  19=13 in hex.<br>
&gt; --<br>
&gt; Brian West<br>
&gt; <a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a><br>
&gt; FreeSWITCH Solutions, LLC<br>
&gt; PO BOX PO BOX 2531<br>
&gt; Brookfield, WI 53008-2531<br>
&gt; Twitter: @FreeSWITCH_Wire<br>
&gt; T: <a href="tel:%2B1.918.420.9266" value="+19184209266">+1.918.420.9266</a>  |  F: <a href="tel:%2B1.918.420.9267" value="+19184209267">+1.918.420.9267</a>  |  M: +1.918.424.WEST<br>
&gt; iNUM: <a href="tel:%2B883%205100%201420%209266" value="+883510014209266">+883 5100 1420 9266</a><br>
&gt; ISN: 410*543<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Feb 25, 2013, at 8:08 AM, Flavio Goncalves &lt;<a href="mailto:flavio@sippulse.com">flavio@sippulse.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; I have searched the list, but I couldn&#39;t find a final answer for this case. I&#39;m receiving calls from a provider using G729 annex B.<br>
&gt; &gt;<br>
&gt; &gt; INVITE<br>
&gt; &gt; a=rtpmap:18 G729/8000.<br>
&gt; &gt; a=fmtp:18 annexb=yes.<br>
&gt; &gt; a=rtpmap:0 PCMU/8000.<br>
&gt; &gt; a=rtpmap:8 PCMA/8000.<br>
&gt; &gt; a=rtpmap:101 telephone-event/8000.<br>
&gt; &gt; a=fmtp:101 0-16.<br>
&gt; &gt; a=rtpmap:19 CN/8000.<br>
&gt; &gt;<br>
&gt; &gt; and FS is answering<br>
&gt; &gt;<br>
&gt; &gt; 200OK<br>
&gt; &gt; m=audio 31388 RTP/AVP 18 101 19.<br>
&gt; &gt; a=rtpmap:18 G729/8000.<br>
&gt; &gt; a=fmtp:18 annexb=yes.<br>
&gt; &gt; a=rtpmap:101 telephone-event/8000.<br>
&gt; &gt; a=fmtp:101 0-16.<br>
&gt; &gt; a=rtpmap:19 CN/8000.<br>
&gt; &gt; a=ptime:20.<br>
&gt; &gt;<br>
&gt; &gt; If freeswitch  supports  only G729A, shouldn&#39;t FS refuse the call with 488 or suppress the line annexb=yes?<br>
&gt; &gt;<br>
&gt; &gt; The audio quality is really bad when I receive calls in this way. After removing the annexb on the gateway the audio is fine, but unfortunately I can&#39;t remove from it from all VoIP providers terminating calls. For outbound calls I simply removed the annexb, but for inbound there is no way to do it.<br>

&gt; &gt;<br>
&gt; &gt; Flavio<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _________________________________________________________________________<br>
&gt; &gt; Professional FreeSWITCH Consulting Services:<br>
&gt; &gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; &gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt; &gt;<br>
&gt; &gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; &gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt; &gt;<br>
&gt; &gt; Official FreeSWITCH Sites<br>
&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; &gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt; &gt;<br>
&gt; &gt; FreeSWITCH-users mailing list<br>
&gt; &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>