<extension name="test">
<condition field="destination_number" expression="^(12345)$">
<action application="set" data="call_timeout=30"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=true"/>
<action application="bridge" data="[sip_from_uri=${sip_from_uri},sip_invite_to_uri= sip:${sip_to_uri}]sofia/ internal/${sip_req_uri}; transport=udp;fs_path=sip:${ sip_received_ip}"/>
<action application="export" data="absolute_codec_string=OPUS"/>
<action application="export" data="codec_string=OPUS"/>
<action application="answer"/>
<action application="record" data="/tmp/data.mp3 20 200"/>
</condition>
</extension>
<extension name="test">
<condition field="destination_number" expression="^(12345)$">
<action application="export" data="absolute_codec_string=OPUS"/>
<action application="export" data="codec_string=OPUS"/>
<action application="answer"/>
<action application="record" data="/tmp/data.mp3 20 200"/>
</condition>
</extension>
Just set it prior to your "answer" in the dial plan./bOn Thu, Aug 11, 2016 at 7:28 AM, Jurijs Ivolga <jurijs.ivolga@gmail.com> wrote:______________________________Hi!I have following use-case:
My UAC makes video call(it offers VP8 and Opus codecs) and after unsuccessful bridge Freeswitch will answer a call and execute record app. When freeswitch fires answer app it offers SDP containing VP8 and OPUS, but I would like that it offers only Opus. Because freeswitch offers VP8, my UAC starts video call and record app do not work as expected.I'm getting following error:
"[ERR] switch_ivr_play_say.c:496 Unable to establish inbound video stream"I need somehow to set absolute_codec_string after unsuccessful bridge.I tried but it didn't worked. If freeswitch answers immediately without bridge, then I'm able to set absolute_codec_string.Is there any possibility to set absolute_codec_string after unsuccessful bridge?Or maybe there is other possibilities to record audio message during video call?Jurijs______________________________ _____________
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-user s
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/ freeswitch-users
http://www.freeswitch.org--Brian West
brian@freeswitch.org
Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
https://www.gofundme.com/freeswitch_ubuntu Got Bugs? Report them here! | Reddit: /r/freeswitch
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest
____________________________________________________________ _____________
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