Class: RubyAsterisk::AMI

Inherits:
Object
  • Object
show all
Defined in:
lib/ast_call.rb

Instance Method Summary collapse

Instance Method Details

#originate2(caller, context, callee, priority, callerid) ⇒ Object



7
8
9
# File 'lib/ast_call.rb', line 7

def originate2(caller, context, callee, priority, callerid)
  execute 'Originate', {'Channel' => caller, 'Context' => context, 'Exten' => callee, 'Priority' => priority.to_s, 'Callerid' => "\"#{callerid}\" <#{callee}>", 'Timeout' => '30000'}
end