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

Seven Du dujinfang at gmail.com
Tue Jan 25 15:29:34 MSK 2011


API: fifo_member add

On Tue, Jan 25, 2011 at 6:53 PM, Fabio Bigliardi
<fabio.bigliardi at gmail.com> wrote:
> 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
>> 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
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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
>
>



-- 
About: http://about.me/dujinfang
Blog: http://www.dujinfang.com
Proj:  http://www.freeswitch.org.cn



More information about the FreeSWITCH-users mailing list