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