[Freeswitch-users] Idiot question concerning internal calls

Alex Lake alex at digitalmail.com
Tue May 14 18:28:40 MSD 2013


Aaargghh!

Sorry guys - I had a little lua function that "de-nilled" my variables 
and it had a typo in it that meant it always returned an empty string....

Doh...
> 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 
> <mailto: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 <mailto: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
>     <mailto: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://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
>
>
> No virus found in this message.
> Checked by AVG - www.avg.com <http://www.avg.com>
> Version: 2012.0.2241 / Virus Database: 3162/5822 - Release Date: 05/13/13
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130514/1e76dcf5/attachment-0001.html 


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