Sha256: 471dd3b00f89f771f8d9058bc348e19865bbb641935c4c9a70a474da565e1d8d
Contents?: true
Size: 607 Bytes
Versions: 65
Compression:
Stored size: 607 Bytes
Contents
require "fsr/app" module FSR module Cmd class Status < Command def initialize(fs_socket = nil) @fs_socket = fs_socket # FSR::CommandSocket obj end # Send the command to the event socket, using bgapi by default. def run(api_method = :api) orig_command = "%s %s" % [api_method, raw] Log.debug "saying #{orig_command}" @fs_socket.say(orig_command) end # This method builds the API command to send to the freeswitch event socket def raw orig_command = "status" end end register(:status, Status) end end
Version data entries
65 entries across 65 versions & 3 rubygems