Name

GetVar — Retrieves the value of a variable

Gets the value of a local channel variable or global variable

Parameters

Channel

[optional] The name of the channel from which to retrieve the variable value.

Variable

[required] Variable name.

ActionID

[optional] An identifier that can be used to identify the response to this action.

Privilege

call, all

Example

          Action: GetVar
Channel: SIP/linksys2-1020e2b0
Variable: SIPUSERAGENT
ActionID: abcd1234
          
Response: Success
Variable: SIPUSERAGENT
Value: Linksys/SPA962-5.1.5
ActionID: abcd1234
          Action: GetVar
Variable: TRUNKMSD
          
Response: Success
Variable: TRUNKMSD
Value: 1