[Freeswitch-users] How to change global variable at runtime
Fabio Bigliardi
fabio.bigliardi at gmail.com
Tue Jan 25 13:53:17 MSK 2011
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 at 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 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 <MSN%3Aanthony_minessale at hotmail.com>
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
> pstn:+19193869900
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110125/e3905b45/attachment-0001.html
More information about the FreeSWITCH-users
mailing list