Prefer ones with only + added

Stephen Paul Weber created

In any case most users should migrate to c prefix version which always works

Change summary

web.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

web.rb 🔗

@@ -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|