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&#39;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">&lt;<a href="mailto:mcampbellsmith@gmail.com">mcampbellsmith@gmail.com</a>&gt;</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&#39;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 &lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Dec 7, 2009 at 10:11 AM, Mark Campbell-Smith<br>
&gt; &lt;<a href="mailto:mcampbellsmith@gmail.com">mcampbellsmith@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi!<br>
&gt;&gt;<br>
&gt;&gt; How can I access the variables that are defined in a users xml file?<br>
&gt;&gt;<br>
&gt;&gt; For example, say user 1000 has a variable called smsnumber, as defined<br>
&gt;&gt; below:<br>
&gt;&gt;<br>
&gt;&gt; &lt;include&gt;<br>
&gt;&gt;  &lt;user id=&quot;1000&quot; mailbox=&quot;1000&quot;&gt;<br>
&gt;&gt;    &lt;params&gt;<br>
&gt;&gt;      &lt;param name=&quot;password&quot; value=&quot;1000&quot;/&gt;<br>
&gt;&gt;    &lt;/params&gt;<br>
&gt;&gt;    &lt;variables&gt;<br>
&gt;&gt;      &lt;variable name=&quot;smsnumber&quot; value=&quot;12345&quot;/&gt;<br>
&gt;&gt;    &lt;/variables&gt;<br>
&gt;&gt;  &lt;/user&gt;<br>
&gt;&gt; &lt;/include&gt;<br>
&gt;&gt;<br>
&gt;&gt; How can I use variable ${smsnumber} in a dialplan to run a perl script<br>
&gt;&gt; using &lt;action application=&quot;system&quot; data=&quot;<a href="http://sms.pl" target="_blank">sms.pl</a>&quot;/&gt; ?<br>
&gt;&gt;<br>
&gt;<br>
&gt; 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>
&gt; you tried this?<br>
&gt;<br>
&gt; &lt;action application=&quot;system&quot; data=&quot;<a href="http://sms.pl" target="_blank">sms.pl</a> ${smsnumber}&quot;/&gt;<br>
&gt;<br>
&gt; -MC<br>
&gt;<br>
&gt;<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<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>