From b7d48374d65e736da0a1424984a00a0a3a66ec62 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 18 Oct 2021 19:49:04 -0500 Subject: [PATCH] Hotfix: create_call not create_call_request --- sgx_jmp.rb | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/sgx_jmp.rb b/sgx_jmp.rb index 0d8654338506553be858fd63f8447f542ab80f9f..9614ab4bed305244e9da00bb965eb8acc1a986b0 100644 --- a/sgx_jmp.rb +++ b/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))