<div dir="ltr">Documented on <a href="https://freeswitch.org/confluence/display/FREESWITCH/How+To%27s#HowTo&#39;s-Locknegotiatedcodec">https://freeswitch.org/confluence/display/FREESWITCH/How+To%27s#HowTo&#39;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">&lt;<a href="mailto:sebastian_ml@gmx.net" target="_blank">sebastian_ml@gmx.net</a>&gt;</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>
&gt; you could try setting execute_on_answer variable to lock in the codec<br>
&gt;<br>
&gt; Make an extension in the same context &quot;assuming default for this example&quot;<br>
&gt;<br>
&gt; &lt;extension name=&quot;lock_codec&quot;&gt;<br>
&gt;<br>
&gt;<br>
&gt;   &lt;condition field=&quot;destination_number&quot; expression=&quot;^lock_codec$&quot;&gt;<br>
&gt;     &lt;action application=&quot;set&quot;<br>
&gt; data=&quot;absolute_codec_string=${<wbr>rtp_use_codec_name}&quot;/&gt;<br>
&gt;   &lt;/condition&gt;<br>
&gt; &lt;/extension&gt;<br>
<br>
</span>&lt;snip&gt;<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 &quot;set&quot; the absolute_codec_string was set on A leg, when using<br>
&quot;export&quot; 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>