[Freeswitch-users] How to change global variable at runtime

Anthony Minessale anthony.minessale at gmail.com
Mon Jan 24 19:17:53 MSK 2011


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 at 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 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
>
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900



More information about the FreeSWITCH-users mailing list