End call on hangup
1 files changed, 2 insertions(+), 1 deletions(-) M web.rb
M web.rb => web.rb +2 -1
@@ 167,7 167,8 @@ class Web < Roda r.post "transfer_complete" do outbound_leg = outbound_transfers.delete(call_id) if params["cause"] == "hangup" log.debug "Normal hangup", loggable_params log.info "Normal hangup, now end #{call_id}", loggable_params modify_call(call_id) { |call| call.state = "completed" } elsif !outbound_leg log.debug "Inbound disconnected", loggable_params else