B.114. SetGlobalVar()

Sets the value of a global variable.
SetGlobalVar(variable=value)
Sets the value of a global variable. If the variable does not exist, it is created.

Note

Internal help for this application in Asterisk 1.4:
  -= Info about application 'SetGlobalVar' =- 

[Synopsis]
Set a global variable to a given value

[Description]
  SetGlobalVar(variable=value): This application sets a given global variable to
the specified value.
diff output to internal help in Asterisk 1.2:
- none - 

Important

Though it is not noted in the internal help, this application is deprecated. See the source code:
ast_log(LOG_WARNING, "SetGlobalVar is deprecated.  Please use Set(GLOBAL(%s)=%s) instead.\n", name, stringp);