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 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.