[Freeswitch-users] absolute_codec_string after unsuccessful bridge

Jurijs Ivolga jurijs.ivolga at gmail.com
Mon Aug 15 09:26:00 MSD 2016


Hi Brian,

Sorry for bothering, but could you please clarify if I can change
"absolute_codec_string" after unsuccessful bridge?

If this should be possible, then probably I found bug and I'll open ticket
in jira.

Thank you!

Jurijs

On Fri, Aug 12, 2016 at 10:28 AM, Jurijs Ivolga <jurijs.ivolga at gmail.com>
wrote:

> Hi,
>
> Maybe somebody can help me?
>
> If I will be able to change local SDP, after unsuccessful bridge, it will
> work for me too.
>
> Thank you!
>
> Jurijs
>
> On Thu, Aug 11, 2016 at 5: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/${s
>>> ip_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/free
>>>> switch-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
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160815/43d03178/attachment-0001.html 


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