Documented on https://freeswitch.org/confluence/display/FREESWITCH/How+To%27s#HowTo's-Locknegotiatedcodec :) On Thu, Dec 15, 2016 at 7:36 PM, Sebastian Kemper <sebastian_ml@gmx.net> wrote:
On Wed, Dec 14, 2016 at 12:49:27AM -0600, Anthony Minessale wrote:
you could try setting execute_on_answer variable to lock in the codec
Make an extension in the same context "assuming default for this example"
<extension name="lock_codec">
<condition field="destination_number" expression="^lock_codec$"> <action application="set" data="absolute_codec_string=${rtp_use_codec_name}"/> </condition> </extension>
<snip>
Hello Anthony,
I tried it out and it worked. I added a new context with the lock_codec extension and then added the execute_on_answer in the context I was making test calls from.
When using "set" the absolute_codec_string was set on A leg, when using "export" on both legs, like you said.
Thanks! Sebastian
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ítalo Rossi italo@freeswitch.org