[Freeswitch-users] Channel variables on a-leg and b-leg

Anthony Minessale anthony.minessale at gmail.com
Mon Aug 14 16:51:52 UTC 2017


Call Id is a sip thing.  Its in the variable sip_call_id iirc.

You can route calls to the info app and see every variable and its values.



On Mon, Aug 14, 2017 at 10:42 AM Vladyslav Zakhozhai <v.zakhozhai at gmail.com>
wrote:

> Hi Paul,
>
> ${uuid} - is Unique Id of channel. For a-leg and b-leg it will be
> different (I mean that uuid is not Call-ID). You can try to use call_uuid
> instead. But I'm not sure about that.
>
> I think that you can use set instead of export and fetch recording data
> from a-leg. I'm using such approach and do not experience any problems with
> that.
>
> On Mon, Aug 14, 2017 at 5:01 PM, Paul Mateer <Paul.Mateer at outlook.com>
> wrote:
>
>> Guys, I'm using the C# interface to FreeSWITCH to add the ability to make
>> and receive calls in an existing software application.
>>
>>
>> I want to record the conversations on the server, but I need to be able
>> to access the recording after the call is complete.
>>
>> The Call-ID value seemed the perfect solution to this and I added the
>> following action to my dialplan entry.
>>
>>
>> <action application="export" data="execute_on_answer=record_session
>> $${base_dir}/recordings/${strftime(%Y.%m.%d_%H.%M.%S)}_${uuid}_${caller_id_number}.wav"/>
>>
>>
>> This seemed to work fine, as I would get recording files created with a
>> Guid in the name, but on closer inspection I found that the Guid used in
>> the filename was not the same Guid associated with the successfully placed
>> call in the application. I assume that this is because the application
>> sees the Call-ID for the a-leg, whereas the dialplan entry is executed in
>> the b-leg and therefore has it's own separate Guid.
>>
>>
>> Is there any way in which I can expose the Call-ID (or some other custom
>> channel variable) for the a-leg to the b-leg so that it will be
>> accessible within the XML dialplan and therefore be usable when creating
>> the recording file?
>>
>>
>> Thanks for any suggestions/assistance offered.
>>
>>
>>
>> _________________________________________________________________________
>> 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

-- 
Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬

☞ http://freeswitch.org/http://cluecon.com/http://twitter.com/FreeSWITCH
☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
<http://freeswitch.org/g+>*

ClueCon Weekly Development Call
☎ sip:888 at conference.freeswitch.org  ☎ +19193869900

https://www.youtube.com/watch?v=oAxXgyx5jUw
https://www.youtube.com/watch?v=9XXgW34t40s
https://www.youtube.com/watch?v=NLaDpGQuZDA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170814/3f910ec8/attachment-0001.html>


More information about the FreeSWITCH-users mailing list