[Freeswitch-users] Export all user vars to the b leg?

Chris Tunbridge blasterjr at gmail.com
Thu Oct 15 01:39:39 MSD 2015


There's not a way (to my knowledge) to do this automatically for all
defined variables, however you can use the export_vars variable to make a
comma separated list of variables to export across legs.

<action application="set" data="export_vars=myvar,myvar2,foo,bar"/>



On Wed, Oct 14, 2015 at 12:59 PM, Victor Chukalovskiy <
victor.chukalovskiy at gmail.com> wrote:

> Good day, wondering if there is a one-liner method to export all
> user-specific variables to the b-leg of the call. I'm referring to all
> the vars I set within <variables> section of <user> in the directory.
>
> I could've done it in the dialplan, but then I need to do it once for
> each var:
> <action application="export" data="foo1=${foo1}"/>
> .....
> <action application="export" data="fooN=${fooN}"/>
>
> Many thanks!
> -Victor
>
> _________________________________________________________________________
> 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/20151014/f9629a44/attachment.html 


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