[Freeswitch-users] absolute_codec_string after unsuccessful bridge

Mirko Brankovic mirkobrankovic at gmail.com
Thu Aug 11 18:19:03 MSD 2016


Hi,
Point is to set codec string first, then do the answer, and then the bridge.

Mirko

On Thu, Aug 11, 2016 at 4:06 PM, Jurijs Ivolga <jurijs.ivolga at gmail.com>
wrote:

> Hi Brian,
>
> It do not work. :(
>
> I tried to set absolute_codec_string but it do not work, If I had bridge
> app before. This code do not work:
>
> <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>
>>
>>
>> But this one works:
>
> <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>
>>
>
> What you think? How I can fix this?
>
>
> Jurijs
>
> On Thu, Aug 11, 2016 at 4:51 PM, Brian West <brian at freeswitch.org> wrote:
>
>> Just set it prior to your "answer" in the dial plan.
>>
>> /b
>>
>>
>> On Thu, Aug 11, 2016 at 7:28 AM, Jurijs Ivolga <jurijs.ivolga at 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 at 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 at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>
>>
>>
>> --
>>
>> *Brian West*
>> brian at freeswitch.org
>>
>>
>> *Twitter: @FreeSWITCH , @briankwest*
>> http://www.freeswitchbook.com
>> http://www.freeswitchcookbook.com
>> https://www.gofundme.com/freeswitch_ubuntu
>>
>> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
>> /r/freeswitch <https://www.reddit.com/r/freeswitch>
>>
>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at 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 at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Regards,
Mirko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160811/61820198/attachment.html 


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