Class: Punchblock::Translator::Asterisk::UniMRCPApp

Inherits:
Object
  • Object
show all
Defined in:
lib/punchblock/translator/asterisk/unimrcp_app.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, *args, options) ⇒ UniMRCPApp

Returns a new instance of UniMRCPApp


8
9
10
11
12
# File 'lib/punchblock/translator/asterisk/unimrcp_app.rb', line 8

def initialize(app, *args, options)
  args.map! { |o| "\"#{o.to_s.squish.gsub('"', '\"')}\"" }
  args << prepare_options(options)
  @agi_app = AGIApp.new(app, *args)
end

Instance Method Details

#execute(call) ⇒ Object


14
15
16
# File 'lib/punchblock/translator/asterisk/unimrcp_app.rb', line 14

def execute(call)
  @agi_app.execute call
end