Module: Adhearsion::CallController::Dial
- Included in:
- Adhearsion::CallController
- Defined in:
- lib/adhearsion/call_controller/dial.rb
Defined Under Namespace
Classes: Dial, DialStatus, JoinStatus
Instance Method Summary collapse
-
#dial(to, options = {}) {|Adhearsion::CallController::Dial::Dial| ... } ⇒ DialStatus
Dial one or more third parties and join one to this call.
Instance Method Details
#dial(to[String], options = {}) ⇒ DialStatus #dial(to[Array], options = {}) ⇒ DialStatus #dial(to[Hash], options = {}) ⇒ DialStatus
Dial one or more third parties and join one to this call
64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/adhearsion/call_controller/dial.rb', line 64 def dial(to, = {}) dial = Dial.new to, , call yield dial if block_given? dial.run(self) dial.await_completion dial.terminate_ringback dial.cleanup_calls dial.status ensure catching_standard_errors { dial.delete_logger if dial } end |