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? Thanks a lot. F. Bigliardi 2011/1/24 Anthony Minessale <anthony.minessale@gmail.com>
use only one $ not 2.
$$ does not mean global, it means eval only once when you load xml. use ${var} and global_setvar together
On Mon, Jan 24, 2011 at 8:26 AM, Fabio Bigliardi <fabio.bigliardi@gmail.com> wrote:
Hi all, I would like to define a global variable in vars.xml and then change its value at runtime. This value has to be read in dialplan and in fifo.conf.xml. I tried global_setvar from the CLI but from the log I can see that the $${var} is expanded to the old value set in vars.xml, not to the new one.
What is the real effect of global_setvar command?
Have I got to somehow write vars.xml and then issue reloadxml in order the change to take effect?
Thanks a lot for your support.
Best regards,
F. Bigliardi
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org