[Freeswitch-users] Idiot question concerning internal calls

Avi Marcus avi at avimarcus.net
Tue May 14 16:37:41 MSD 2013


How are you creating a B leg? Bridging to user/ ?
-Avi

On Tue, May 14, 2013 at 3:07 PM, Alex Lake <alex at digitalmail.com> wrote:

> I've just discovered a yawning hole in my knowledge of Freeswitch...
>
> When I make an internal call, I would like to be able to set variables
> that are originator specific.
>
> I had previously done this in the directory part of conf with things
> like this:
>
> <include>
>   <user id="9903301">
> ...
>    <variables>
>     <variable name="tenant_id" value="9903"/>
>     <variable name="a_ext" value="301"/>
>     <variable name="accountcode" value="301"/>
>     <variable name="user_context" value="dp9903"/>
>     <variable name="internal_caller_id_name" value="Internal from x301
> alex"/>
>    </variables>
>   </user>
> </include>
>
> But when I try to extract those variables in a lua script (eg. the
> extension handling "201"), they don't seem to be there.
>
> It's as though they weren't exported from A-Leg to B-Leg.
>
> What am I missing?
>
> How can I arrange for variables set in the <user> to be readable in the
> b-leg dialplan?
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.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/20130514/934bd4ff/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list