Gents,<br><br>Thanks for the responses.<br><br>Now gotten Howler to send me a custom build that will not offer G729b in any shape or form, as well as the customer to switch off G729b.<br><br>Cisco gateways are negotiating correctly by specifying a=fmtp:18 annexb=yes. If this line is missing, or has an annexb=no, then they will negotiate G729a.<br>
<br>Now the million dollar question: ${switch_r_sdp} will get you the SDP for the remote leg. It's returned as a single string in that variable from what I could tell.<br><br>What sort of regex is allowed in the match condition ? can I, for example, simply use the Perl s/<expression>/<replacement> syntax to search for the annexb string and get it rewritten ?<br>
<br>My experiments have so far failed in this regard, i.e. to rewrite the string. Can anyone provide an example ?<br><br>I would like to handle codecs in the following way:<br><br><ol><li>receive inbound call</li><li>return ringing tone through 3pcc and ring_back</li>
<li>set continue_on_fail=true</li><li>set hangup_after_bridge=true</li><li>bridge</li><li>on failure, transfer to an extension that will look at outcome of codec negotiation</li><li>rewrite sdp of the A-leg so that remote end point will successfully accept it</li>
<li>bridge the call again with the SDP appropriately written</li><li>If we fail, then hangup with NORMAL_CIRCUIT_CONGESTION, otherwise just let the call be</li></ol>Regards, and thanks once more.<br><br>Ahmed.<br><br><div class="gmail_quote">
2010/1/19 Steve Underwood <span dir="ltr"><<a href="mailto:steveu@coppice.org" target="_blank">steveu@coppice.org</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>On 01/20/2010 12:36 AM, Brian West wrote:<br>
> g729a is 100% INVALID in the sdp fix the param in your cisco SPA or your Linksys SPA phone and it will stop doing that. Hopefully they'll fix this "bug" soon in the cisco phones to not include the a in the sdp. The fmtp is the proper way to specify annex a or any other options for g729.<br>
><br>
</div>Annex A only affects the inner workings of the codec. There is<br>
absolutely no difference whatsoever between G.729 and G.729A on the<br>
wire. The SDP has no reason to mention it, and the standards say it<br>
shouldn't.<br>
<div>> /b<br>
><br>
> On Jan 19, 2010, at 10:31 AM, Ahmed Naji wrote:<br>
><br>
><br>
>> Hi everyone,<br>
>><br>
>> I have the following scenario and a major customer-affecting issue thereof.<br>
>><br>
>> Here is the scenario: customer traffic encoded as G.729 from a cisco gateway<br>
>> -> our FS (G729 passthrough) -> remote end gw (G729)<br>
>><br>
>> Calls were failing at an alarming rate, so I looked at the debug logs. It<br>
>> transpired that the Cisco is offering G729 annex b, while the remote end can<br>
>> only do G729a.<br>
>><br>
>> Besides changing source or destination preferences, is there a way to ensure<br>
>> that G729a is used end-end ?<br>
>><br>
>> Thanks in advance.<br>
>><br>
><br>
</div><font color="#888888">Steve<br>
</font><div><div></div><div><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Ahmed Naji<br>