Class: Punchblock::Translator::Asterisk::AGIApp

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

Instance Method Summary collapse

Constructor Details

#initialize(app, *args) ⇒ AGIApp

Returns a new instance of AGIApp


5
6
7
# File 'lib/punchblock/translator/asterisk/agi_app.rb', line 5

def initialize(app, *args)
  @app, @args = app, args
end

Instance Method Details

#execute(call) ⇒ Object


9
10
11
# File 'lib/punchblock/translator/asterisk/agi_app.rb', line 9

def execute(call)
  call.execute_agi_command "EXEC #{@app}", @args.join(',')
end