Inherit_codec requires late negotiation - is that enabled too? Otherwise the aleg codec has already been picked before hitting the dialplan.<div><div><br><br>On Wednesday, September 18, 2013, sangdrax8 wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Did I explain a bit to much detail for the users list?<br>
<br>
Does anyone use "inherit_codec=true" and have it working?<br>
<br>
<br>
On Tue, Sep 17, 2013 at 2:27 PM, sangdrax8 <<a>sangdrax8@gmail.com</a>> wrote:<br>
> I pulled the latest freeswitch from git this morning, and am still<br>
> having issues using inherit_codec=true. It seems the only way I can<br>
> get it to defer to the choice of the b-leg call is to remove the<br>
> ringback, and thus the need for early media.<br>
><br>
> My setup has 2 phones with the following codecs configured:<br>
><br>
> phone1000: g722, ulaw<br>
> phone1001: ulaw<br>
><br>
> My goal is to have a call initiated by phone1000 (a-leg) to defer the<br>
> codec choice until phone1001 (b-leg) chooses one. This would allow<br>
> them to talk with no transcoding required by freeswitch. With the<br>
> following dial plan, this fails to work.<br>
><br>
> <extension name="Local_Extension"><br>
> <condition field="destination_number" expression="^(10[01][0-9])$"><br>
> <action application="export" data="dialed_extension=$1"/><br>
> <action application="set" data="ringback=${us-ring}"/><br>
> <action application="set" data="transfer_ringback=$${hold_music}"/><br>
> <action application="set" data="call_timeout=30"/><br>
> <action application="set" data="hangup_after_bridge=true"/><br>
> <action application="set" data="inherit_codec=true" /><br>
> <action application="bridge"<br>
> data="user/${dialed_extension}@${domain_name}"/><br>
> </condition><br>
> </extension><br>
><br>
> It does log that it is going to defer:<br>
><br>
> 2013-09-17 13:15:10.956535 [DEBUG] mod_sofia.c:4542 [zrtp_passthru]<br>
> Setting a-leg inherit_codec=true<br>
> 2013-09-17 13:15:10.956535 [DEBUG] mod_sofia.c:4545 [zrtp_passthru]<br>
> Setting b-leg absolute_codec_string='G722@8000h@20i@64000b,PCMU@8000h@20i@64000b'<br>
><br>
><br>
> then it tries to provide the ringback for the a-leg, and it negotiates<br>
> to g722 since freeswitch supports that and it is the first match.<br>
> Later when the b-leg is answered, it also negotiates, this time to<br>
> ulaw as that is all b supports. My call completes, but freeswitch has<br>
> to transcode between the two.<br>
><br>
> In an attempt to see inherit_codec work, I then commented out the<br>
> ringback line from the above dialplan. With only this one change,<br>
> freeswitch now waits until the b-leg negotiation, and passes that back<br>
> to the a-leg. The call completes and both handsets are using ulaw and<br>
> no transcoding is required. The problem being that the calling party<br>
> never gets a ring while waiting.<br>
><br>
> I can't imagine that the only way to use inherit_codec=true is with<br>
> all ringing turned off. Can someone tell me if there is an additional<br>
> option I am missing? All documentation I read seems to indicate that<br>
> just adding "inherit_codec=true" will fix things, but even the<br>
> default.xml provided as an example uses ringback and therefore fails.<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a>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>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.free</a></blockquote></div></div>