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

Version Path
bougyman-freeswitcher-0.0.9 lib/fsr/cmd/status.rb
bougyman-freeswitcher-0.1.0 lib/fsr/cmd/status.rb
bougyman-freeswitcher-0.1.1 lib/fsr/cmd/status.rb
bougyman-freeswitcher-0.1.2 lib/fsr/cmd/status.rb
bougyman-freeswitcher-0.1.3 lib/fsr/cmd/status.rb
bougyman-freeswitcher-0.1.4 lib/fsr/cmd/status.rb
bougyman-freeswitcher-0.3.0 lib/fsr/cmd/status.rb
bougyman-freeswitcher-0.3.1 lib/fsr/cmd/status.rb
bougyman-freeswitcher-0.4.0 lib/fsr/cmd/status.rb
bougyman-freeswitcher-0.4.1 lib/fsr/cmd/status.rb
bougyman-freeswitcher-0.4.2 lib/fsr/cmd/status.rb
freeswitcher-0.8.0 lib/fsr/cmd/status.rb
freeswitcher-0.7.1 lib/fsr/cmd/status.rb
freeswitcher-0.7.0 lib/fsr/cmd/status.rb
freeswitcher-0.6.18 lib/fsr/cmd/status.rb
freeswitcher-0.6.17 lib/fsr/cmd/status.rb
freeswitcher-0.6.16 lib/fsr/cmd/status.rb
freeswitcher-0.6.15 lib/fsr/cmd/status.rb
freeswitcher-0.6.14 lib/fsr/cmd/status.rb
freeswitcher-0.6.13 lib/fsr/cmd/status.rb