Closed benlangfeld closed 10 years ago
BTW, my observance of this issue was on Asterisk 11.3
Turns out this only fixes the issue for inbound calls. Outbound calls still present the same problem:
Adhearsion.router do
openended do
route 'default' do
answer
logger.info "Placing outbound call"
first_call = call
other_call = Adhearsion::OutboundCall.originate 'SIP/usera' do
call[:ahn_prevent_hangup] = true
logger.info "Joining!"
call.join first_call
end
logger.info "Controller terminating"
end
end
end
Example code:
On FreeSWITCH mod_rayo (regardless of who hangs up):
On Asterisk:
when
call
hangs up: https://gist.github.com/benlangfeld/ea9ef8a68194d7b45d01 whenother_call
hangs up: https://gist.github.com/benlangfeld/597662aaa5f2b3450cd6