And how could I set a new on hook consumer after changing the value of the global variable so that it will ring when a caller is in the fifo?<br><br>Thanks a lot.<br><br>F. Bigliardi<br><br><br><br><div class="gmail_quote">
2011/1/24 Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
use only one $ not 2.<br>
<br>
$$ does not mean global, it means eval only once when you load xml.<br>
use ${var} and global_setvar together<br>
<div><div></div><div class="h5"><br>
On Mon, Jan 24, 2011 at 8:26 AM, Fabio Bigliardi<br>
&lt;<a href="mailto:fabio.bigliardi@gmail.com">fabio.bigliardi@gmail.com</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt; I would like to define a global variable in vars.xml and then change its<br>
&gt; value at runtime. This value has to be read in dialplan and in<br>
&gt; fifo.conf.xml.<br>
&gt; I tried global_setvar from the CLI but from the log I can see that the<br>
&gt; $${var} is expanded to the old value set in vars.xml, not to the new one.<br>
&gt;<br>
&gt;<br>
&gt; What is the real effect of global_setvar command?<br>
&gt;<br>
&gt; Have I got to somehow write vars.xml and then issue reloadxml in order the<br>
&gt; change to take effect?<br>
&gt;<br>
&gt; Thanks a lot for your support.<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; F. Bigliardi<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&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>
<br>
--<br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<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>
</blockquote></div><br>