GLOBAL()

GLOBAL(variablename)

(beginning Asterisk 1.4)

Used to declare a variable global, i.e. valid beyond the active life of the current channel. Asterisk 1.2 users use Set() (the section called “Set()) with the option g.

; define global variable ${myvariable}:
exten => 123,1,Set(GLOBAL(myvariable)=Test)
[Note]

Whether global variables persist through a reload on the Asterisk console depends whether clearglobalvars is set in extensions.conf.

[Note]

Internal help for this application in Asterisk 1.4: 

  -= Info about function 'GLOBAL' =- 

[Syntax]
GLOBAL(<varname>)

[Synopsis]
Gets or sets the global variable specified

[Description]
Not available

diff output to internal help in Asterisk 1.2: 

-- not available in Version 1.2 --