<div dir="ltr">Documented on <a href="https://freeswitch.org/confluence/display/FREESWITCH/How+To%27s#HowTo's-Locknegotiatedcodec">https://freeswitch.org/confluence/display/FREESWITCH/How+To%27s#HowTo's-Locknegotiatedcodec</a><div><br></div><div>:)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 15, 2016 at 7:36 PM, Sebastian Kemper <span dir="ltr"><<a href="mailto:sebastian_ml@gmx.net" target="_blank">sebastian_ml@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Dec 14, 2016 at 12:49:27AM -0600, Anthony Minessale wrote:<br>
> you could try setting execute_on_answer variable to lock in the codec<br>
><br>
> Make an extension in the same context "assuming default for this example"<br>
><br>
> <extension name="lock_codec"><br>
><br>
><br>
> <condition field="destination_number" expression="^lock_codec$"><br>
> <action application="set"<br>
> data="absolute_codec_string=${<wbr>rtp_use_codec_name}"/><br>
> </condition><br>
> </extension><br>
<br>
</span><snip><br>
<br>
Hello Anthony,<br>
<br>
I tried it out and it worked. I added a new context with the lock_codec<br>
extension and then added the execute_on_answer in the context I was<br>
making test calls from.<br>
<br>
When using "set" the absolute_codec_string was set on A leg, when using<br>
"export" on both legs, like you said.<br>
<br>
Thanks!<br>
<div class="HOEnZb"><div class="h5">Sebastian<br>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Ítalo Rossi<div><a href="mailto:italo@freeswitch.org" target="_blank">italo@freeswitch.org</a></div></div></div>
</div>