[Freeswitch-users] FS changes to transcoding after hold

Sebastian Kemper sebastian_ml at gmx.net
Fri Dec 16 01:36:00 MSK 2016


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



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list