Need to look up the customer again

Stephen Paul Weber created

Change summary

web.rb | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)

Detailed changes

web.rb 🔗

@@ -250,15 +250,16 @@ class Web < Roda
 							log.debug "Inbound disconnected", loggable_params
 						elsif params["cause"] == "error" && params["tries"].to_i < 15
 							log.info "2nd leg error, retry", loggable_params
-							create_call(
-								customer,
-								params["from"],
-								call_id,
-								params["applicationId"],
-								tries: params["tries"].to_i + 1
-							).then { |call|
-								outbound_transfers[params["callId"]] = call
-							}.catch(&log.method(:error))
+							customer_repo(
+								sgx_repo: Bwmsgsv2Repo.new
+							).find(params["customer_id"]).then { |customer|
+								create_call(
+									customer, params["from"], call_id, params["applicationId"],
+									tries: params["tries"].to_i + 1
+								).then { |call|
+									outbound_transfers[params["callId"]] = call
+								}.catch(&log.method(:error))
+							}
 						else
 							log.debug "Go to voicemail", loggable_params
 							modify_call(call_id) do |call|