[asterisk-users] set global variable

Jan Fousek vincnet at centrum.cz
Wed Sep 13 12:50:01 MST 2006

Thanks for ideas, I thing I've found another way. It's possible to store data in 
database, alter them via manager and use in dialplan. Exactly, what I needed.
Just hope,  it will work

> Od: pchammer at dynx.net
> Komu: Asterisk Users Mailing List - Non-Commercial Discussion<asterisk-users at lists.digium.com>
> Datum: 13.09.2006 21:45
> Předmět: Re: [asterisk-users] set global variable
>Jan Fousek wrote:
>> Hi all,
>>  is there any possibility of setting the global variables from outside
of asterisk?
>> Like manager api or something like that.
>> Thanks a lot
>>   not sure about current svn trunk,
>but in the past you could set a channel var with
>action: SetVar
>channel: Zap/49-1
>but required a channel
>action: GetVar will get channel or global vars
>you should be able to easily mod manager.c to use ast_get_channel_by_name
>code if channel is passed, and use pbx_builtin_setglobalvar otherwise.
>sad thing is setvar is depeciated in favor of set.  (reminder, no clue
what current svn trunk has)
>i hope this helps
>--Bandwidth and Colocation provided by Easynews.com --
>asterisk-users mailing list
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users

More information about the asterisk-users mailing list