[Freeswitch-users] Access to users variables
Michael Collins
msc at freeswitch.org
Mon Dec 7 10:56:21 PST 2009
Check out
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_user
you might just need to set the user so that the vars become available on the
leg you're processing.
-MC
On Mon, Dec 7, 2009 at 10:37 AM, Mark Campbell-Smith <
mcampbellsmith at gmail.com> wrote:
> 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
> >
> >
>
> _______________________________________________
> 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/20091207/53615f4b/attachment-0002.html
More information about the FreeSWITCH-users
mailing list