I have a ruby application that can make a outbound call
# Sms.multi_call(to: '+155555555555', from: ENV['TWILIO_FROM_PHONE'])
def self.multi_call(to:, from: ENV['TWILIO_FROM_PHONE'] )
twilio_client = Twilio::REST::Client.new(ENV['TWILIO_ACCOUNT_SID'], ENV['TWILIO_AUTH_TOKEN'])
call = twilio_client.calls.create(
url: 'https://sample.com/api/v1/twilio/voice',
to: to,
from: from
)
end
This part is working
When the call is made and goes to the twilio/voice
https://sample.com/api/v1/twilio/voice all its doing is dialing the IVR phone number
<Response>
<Dial>2025555555</Dial>
</Response>
At this point, when I get the phone call and dial an IVR prompt, it auto disconnects.
Any idea how to prevent this?