Asterisk cmd SetGlobalVar

SetGlobalVar

Synopsis

Set variable to value in Asterisk v1.0.x and earlier

Description

SetGlobalVar(foo=value)

Sets global variable foo to value.

Asterisk 1.2

Use Set instead with the 'g' option

extensions.conf:
; If clearglobalvars is not set, then global variables will persist
; through reloads, and even if deleted from the extensions.conf or
; one if its included files, will remain set to the previous value.
;
clearglobalvars=no

Examples

SetGlobalVar(numRings=18)
SetGlobalVar(defaultChannel=Zap/2)

See also

  • Set
  • ImportVar: Get variable of another channel
  • SHARED function (Asterisk 1.6.1 with backport for Asterisk 1.4)
  • Asterisk func GLOBAL


Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ


SetGlobalVar

Synopsis

Set variable to value in Asterisk v1.0.x and earlier

Description

SetGlobalVar(foo=value)

Sets global variable foo to value.

Asterisk 1.2

Use Set instead with the 'g' option

extensions.conf:
; If clearglobalvars is not set, then global variables will persist
; through reloads, and even if deleted from the extensions.conf or
; one if its included files, will remain set to the previous value.
;
clearglobalvars=no

Examples

SetGlobalVar(numRings=18)
SetGlobalVar(defaultChannel=Zap/2)

See also

  • Set
  • ImportVar: Get variable of another channel
  • SHARED function (Asterisk 1.6.1 with backport for Asterisk 1.4)
  • Asterisk func GLOBAL


Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ


Created by: oej, Last modification: Sun 09 of Jun, 2013 (22:02 UTC) by JustRumours
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+