Name

SetGlobalVar() — Sets a global variable to the specified value

Synopsis

SetGlobalVar(n=value)

Note

This application has been deprecated in favor of:

Set(GLOBAL(var)=...)

Sets a global variable called n to the specified value. Global variables are available across channels.

; set the NUMRINGS global variable to 3
exten => 123,1,SetGlobalVar(NUMRINGS=3)

See Also

Set()

Get Asterisk: The Future of Telephony, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.