~singpolyma/sgx-jmp

846e96955b40d223579dd1bfdc6f85d9df50b432 — Stephen Paul Weber 4 months ago 72ace06
Prefer ones with only + added

In any case most users should migrate to c prefix version which always works
1 files changed, 2 insertions(+), 2 deletions(-)

M web.rb
M web.rb => web.rb +2 -2
@@ 400,7 400,7 @@ class Web < Roda
				r.post "status" do
					log.info "#{params['eventType']} #{params['callId']}", loggable_params
					if params["eventType"] == "disconnect"
						customer_id = params["from"].sub(/^(?:\+1|c)/, "")
						customer_id = params["from"].sub(/^(?:\+|c)/, "")
						call_attempt_repo.ending_call(customer_id, params["callId"])
						cdr_repo
							.put(CDR.for_outbound(customer_id, params))


@@ 410,7 410,7 @@ class Web < Roda
				end

				r.post do
					from = params["from"].sub(/^(?:\+1|c)/, "")
					from = params["from"].sub(/^(?:\+|c)/, "")
					customer_repo(
						sgx_repo: Bwmsgsv2Repo.new
					).find_by_format(from).then { |c|