lib/adhearsion/outbound_call.rb in adhearsion-2.0.0.alpha2 vs lib/adhearsion/outbound_call.rb in adhearsion-2.0.0.alpha3

- old
+ new

@@ -39,17 +39,17 @@ wait_timeout = 60 end write_and_await_response(Punchblock::Command::Dial.new(options), wait_timeout).tap do |dial_command| @dial_command = dial_command - Adhearsion.active_calls << self + Adhearsion.active_calls << current_actor end end def run_router catching_standard_errors do - dispatcher = Adhearsion.router.handle self - dispatcher.call self + dispatcher = Adhearsion.router.handle current_actor + dispatcher.call current_actor end end def run_router_on_answer register_event_handler :class => Punchblock::Event::Answered do |event|