Name

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

Synopsis

    SetGlobalVar(n=value)

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

SetVar()

Get Asterisk: The Future of Telephony now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.