class PunchblockConsole::Commands

Public Instance Methods

agi(command, params = {}) click to toggle source
# File lib/punchblock/console/commands.rb, line 41
def agi(command, params = {})
  component = Component::Asterisk::AGI::Command.new :name => command, :params => params
  write component
  component.complete_event
end
record(options = {}) click to toggle source
# File lib/punchblock/console/commands.rb, line 27
def record(options = {})
  write Component::Record.new(options)
end
say(string) click to toggle source
# File lib/punchblock/console/commands.rb, line 31
def say(string)
  output string, :text
end