~singpolyma/sgx-jmp

b3262f4d1332498dd2a855d16fd5a7e3c713f897 — Stephen Paul Weber 2 years ago bc03f1e
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