class Ari::Asterisk
Public Class Methods
get_global_var(options = {})
click to toggle source
GET /asterisk/variable
Global variables
Parameters:
variable (required) - The variable to get
# File lib/ari/resources/asterisk.rb, line 41 def self.get_global_var(options = {}) raise ArgumentError.new("Parameter variable must be passed in options hash.") unless options[:variable] path = '/asterisk/variable' response = client(options).get(path, options) Variable.new(response.merge(client: options[:client])) end
Also aliased as: getGlobalVar
get_info(options = {})
click to toggle source
GET /asterisk/info
Asterisk
system information (similar to core show settings)
Parameters:
only - Filter information returned
# File lib/ari/resources/asterisk.rb, line 25 def self.get_info(options = {}) path = '/asterisk/info' response = client(options).get(path, options) AsteriskInfo.new(response.merge(client: options[:client])) end
Also aliased as: getInfo
set_global_var(options = {})
click to toggle source
POST /asterisk/variable
Global variables
Parameters:
variable (required) - The variable to set value - The value to set the variable to
# File lib/ari/resources/asterisk.rb, line 59 def self.set_global_var(options = {}) raise ArgumentError.new("Parameter variable must be passed in options hash.") unless options[:variable] path = '/asterisk/variable' response = client(options).post(path, options) end
Also aliased as: setGlobalVar