C.21. GLOBAL()

(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() (Section B.110, “Set()) with the option g.
; define global variable ${myvariable}:
exten => 123,1,Set(GLOBAL(myvariable)=Test)


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


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


Gets or sets the global variable specified

Not available
diff output to internal help in Asterisk 1.2:
-- not available in Version 1.2 --