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
variable: SOMEVAR=SOMESTRING
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