[Freeswitch-users] Access to users variables
Mark Campbell-Smith
mcampbellsmith at gmail.com
Mon Dec 7 10:37:03 PST 2009
Hi!
That's exactly what I want to do and that was the first thing I tried,
but nothing is passed to the script.
In a case like this, what defines if variable smsnumber is taken from
the A path or B path? (The A path does not have smsnumber defined)
On Tue, Dec 8, 2009 at 5:25 AM, Michael Collins <msc at freeswitch.org> wrote:
>
>
> On Mon, Dec 7, 2009 at 10:11 AM, Mark Campbell-Smith
> <mcampbellsmith at gmail.com> wrote:
>>
>> Hi!
>>
>> How can I access the variables that are defined in a users xml file?
>>
>> For example, say user 1000 has a variable called smsnumber, as defined
>> below:
>>
>> <include>
>> <user id="1000" mailbox="1000">
>> <params>
>> <param name="password" value="1000"/>
>> </params>
>> <variables>
>> <variable name="smsnumber" value="12345"/>
>> </variables>
>> </user>
>> </include>
>>
>> How can I use variable ${smsnumber} in a dialplan to run a perl script
>> using <action application="system" data="sms.pl"/> ?
>>
>
> Do you just want to pass the value in smsnumber to the sms.pl script? Have
> you tried this?
>
> <action application="system" data="sms.pl ${smsnumber}"/>
>
> -MC
>
>
> _______________________________________________
> 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
>
>
More information about the FreeSWITCH-users
mailing list