adhearsion/matrioska — pull request #13 by vangberg (2014-10-24 21:35:26+00:00)
Title: Check for call aliveness

My scenario is that I have a B call that is executing a controller started by AppRunner. I set `call.auto_hangup = false` and do some post-processing in the controller. When the controller finishes, the actor has died and the callback fails when calling `call.active?`:

```
[2014-10-24 13:48:09.213] ERROR Adhearsion::OutboundCall: d8a710ef-3b3a-455c-be29-b78d6324ad6c@localhost: This call is expired and is no longer accessible. See http://adhearsion.com/docs/calls for further details.
/usr/local/ruby_2.1.3/lib/ruby/gems/2.1.0/gems/adhearsion-2.5.4/lib/adhearsion/call.rb:28:in `rescue in method_missing'
/usr/local/ruby_2.1.3/lib/ruby/gems/2.1.0/gems/adhearsion-2.5.4/lib/adhearsion/call.rb:26:in `method_missing'
/usr/local/ruby_2.1.3/lib/ruby/gems/2.1.0/gems/matrioska-0.2.1/lib/matrioska/app_runner.rb:84:in `block in match_and_run'
/usr/local/ruby_2.1.3/lib/ruby/gems/2.1.0/gems/adhearsion-2.5.4/lib/adhearsion/call_controller.rb:113:in `call'
/usr/local/ruby_2.1.3/lib/ruby/gems/2.1.0/gems/adhearsion-2.5.4/lib/adhearsion/call_controller.rb:113:in `exec_with_callback'
/usr/local/ruby_2.1.3/lib/ruby/gems/2.1.0/gems/adhearsion-2.5.4/lib/adhearsion/call_controller.rb:105:in `block (2 levels) in bg_exec'
/usr/local/ruby_2.1.3/lib/ruby/gems/2.1.0/gems/adhearsion-2.5.4/lib/adhearsion/foundation/exception_handler.rb:5:in `catching_standard_errors'
/usr/local/ruby_2.1.3/lib/ruby/gems/2.1.0/gems/adhearsion-2.5.4/lib/adhearsion/call_controller.rb:104:in `block in bg_exec'
/usr/local/ruby_2.1.3/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/thread_handle.rb:13:in `block in initialize'
/usr/local/ruby_2.1.3/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/internal_pool.rb:100:in `call'
/usr/local/ruby_2.1.3/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/internal_pool.rb:100:in `block in create'
/usr/local/ruby_2.1.3/lib/ruby/gems/2.1.0/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
/usr/local/ruby_2.1.3/lib/ruby/gems/2.1.0/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
```