[Freeswitch-users] Access to users variables
Michael Collins
msc at freeswitch.org
Mon Dec 7 10:25:36 PST 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091207/b82afa81/attachment-0002.html
More information about the FreeSWITCH-users
mailing list