Hotfix: create_call not create_call_request

Stephen Paul Weber created

Change summary

sgx_jmp.rb | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)

Detailed changes

sgx_jmp.rb 🔗

@@ -481,15 +481,12 @@ Command.new(
 	customer_repo: CustomerRepo.new(sgx_repo: Bwmsgsv2Repo.new)
 ) {
 	Command.customer.then do |customer|
-		BANDWIDTH_VOICE.create_call(
-			CONFIG[:creds][:account],
-			body: customer.fwd.create_call_request do |cc|
-				cc.from = customer.registered?.phone
-				cc.application_id = CONFIG[:sip][:app]
-				cc.answer_url = "#{CONFIG[:web_root]}/ogm/start?" \
-				                "customer_id=#{customer.customer_id}"
-			end
-		)
+		customer.fwd.create_call(CONFIG[:creds][:account]) do |cc|
+			cc.from = customer.registered?.phone
+			cc.application_id = CONFIG[:sip][:app]
+			cc.answer_url = "#{CONFIG[:web_root]}/ogm/start?" \
+			                "customer_id=#{customer.customer_id}"
+		end
 		Command.finish("You will now receive a call.")
 	end
 }.register(self).then(&CommandList.method(:register))