我试图建立一个简单的呼叫转发应用程序使用twiml。我想要完成的流程是;
阅读文档,它看起来相当简单,收集数字;
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Gather action=“this is where the dial action goes” timeout="10" finishOnKey="*">
<Say>Please enter the phone number and press *.</Say>
</Gather>
</Response>这应该足够要求一个电话号码,并将其记录为数字。
下一步的过程应该是使用拨号拨号这些数字,但这是我有点迷路了。我用了好几次拨号,但不知道怎么把这两个连接在一起。
<?xml version=”1.0″ encoding=”UTF-8″?>
<Response>
<Dial>
"the digits passed from gather"
</Number>
</Dial>
</Response>理想情况下,我认为拨号命令进入集合的action="“部分是有意义的,但我不确定这是否可行。对从这里到哪里有什么想法吗?
发布于 2015-04-15 18:39:20
按下的数字在POST请求中发送到were标记的操作。
所以:
<Gather action="/someotherpage.aspx">....</Gather>
在someotherpage.aspx上,Request.Form“位”将具有它们输入的值。
https://stackoverflow.com/questions/29657733
复制相似问题