Page 551 - Asterisk™: The Future of Telephony
P. 551

Parameters
               Filename
                   [required]Name of the configuration file to retrieve.
               ActionID
                   [optional] An identifier that can be used to identify the response to this action.

               Privilege
               config, all
               Example
                   Action: GetConfig
                   Filename: musiconhold.conf
                   ActionID: 09235012

                   Response: Success
                   ActionID: 09235012
                   Category-000000: default
                   Line-000000-000000: mode=files
                   Line-000000-000001: directory=/var/lib/asterisk/moh
                   Line-000000-000002: random=yes


               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

                                                                              GetVar | 523
   546   547   548   549   550   551   552   553   554   555   556