Check out<br><a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_user">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_user</a><br><br>you might just need to set the user so that the vars become available on the leg you're processing.<br>
-MC<br><br><div class="gmail_quote">On Mon, Dec 7, 2009 at 10:37 AM, Mark Campbell-Smith <span dir="ltr"><<a href="mailto:mcampbellsmith@gmail.com">mcampbellsmith@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi!<br>
<br>
That's exactly what I want to do and that was the first thing I tried,<br>
but nothing is passed to the script.<br>
<br>
In a case like this, what defines if variable smsnumber is taken from<br>
the A path or B path? (The A path does not have smsnumber defined)<br>
<div><div></div><div class="h5"><br>
On Tue, Dec 8, 2009 at 5:25 AM, Michael Collins <<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>> wrote:<br>
><br>
><br>
> On Mon, Dec 7, 2009 at 10:11 AM, Mark Campbell-Smith<br>
> <<a href="mailto:mcampbellsmith@gmail.com">mcampbellsmith@gmail.com</a>> wrote:<br>
>><br>
>> Hi!<br>
>><br>
>> How can I access the variables that are defined in a users xml file?<br>
>><br>
>> For example, say user 1000 has a variable called smsnumber, as defined<br>
>> below:<br>
>><br>
>> <include><br>
>> <user id="1000" mailbox="1000"><br>
>> <params><br>
>> <param name="password" value="1000"/><br>
>> </params><br>
>> <variables><br>
>> <variable name="smsnumber" value="12345"/><br>
>> </variables><br>
>> </user><br>
>> </include><br>
>><br>
>> How can I use variable ${smsnumber} in a dialplan to run a perl script<br>
>> using <action application="system" data="<a href="http://sms.pl" target="_blank">sms.pl</a>"/> ?<br>
>><br>
><br>
> Do you just want to pass the value in smsnumber to the <a href="http://sms.pl" target="_blank">sms.pl</a> script? Have<br>
> you tried this?<br>
><br>
> <action application="system" data="<a href="http://sms.pl" target="_blank">sms.pl</a> ${smsnumber}"/><br>
><br>
> -MC<br>
><br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>