adhearsion/adhearsion — Issue #126: #dial not unblocking when far end hangs up with Asterisk
Author: bklang
Created: 2012-03-07 22:35:08+00:00
State: open

Gist of logs here: https://gist.github.com/c5a4789c10ca524573d6

The call controller is very simple:

```ruby
Adhearsion.router do
route 'general' do
answer
dial 'SIP/102'
end
end
```

When 101 calls in, Adhearsion simply turns around and connects the call to SIP/102. If 101 hangs up first, then 102 is also hung up and all is well. If 102 hangs up first, 101 is left in limbo. Checking the logs it appears that the `#dial` command is still blocking.

Not sure if this is related or not: when I pressed CTRL+C to hangup all the calls it crashed Adhearsion. You can see that toward the bottom of the gist.