I want to make an outbound call to an known IVR system from my application; IVR: If you would like to do this, press 1 Application: should be able to input 1, choose to option (after 15 secs wait)
I have tried and and to wait for IVR to finish giving menu options to choose from. And ultimately to finally record the status of my call
String from = "+14048000746";
String to = "+1479268XXXX";
Call call = Call
.creator(new PhoneNumber(to), new PhoneNumber(from), new URI("https://xxxxxxx.com/TwilioVoice/TwilioCall.xml"))
.create();
System.out.println(call.getAnsweredBy());
System.out.println(call.getStatus());
System.out.println(call.getSid());
<!-- TWIML -->
<Response>
<Record transcribe="true" />
<Pause length="10" />
<!-- Refill Option -->
<Dial>1</Dial>
</Response>
Also tried
<Response>
<Record transcribe="true" />
<!-- Refill Option -->
<Dial>
<Number sendDigits="wwwwwwwwwwwwwwwwwwwwwwwwwwwww1" />
</Dial>
</Response>
I expect the Twilio outbound call with any way to be able to input digit in response or prescription number during the call later to order my refill and ultimately get the status if the order has been placed successfully or not and when to pick up etc.