我想从我的应用程序向已知的IVR系统打出电话; IVR:如果您要这样做,请按1 应用:应该可以输入1,选择选项(等待15秒后)
我已经尝试并等待IVR完成提供菜单选项的选择。 最终记录下我的通话状态
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>
我希望Twilio呼出电话能够在以后的通话中以任何方式输入回复的数字或处方编号以订购我的笔芯,并最终获得状态(无论是否成功下达订单以及何时取货)等