我正在使用voicexml
处理来自客户的呼入呼叫。下面是我使用的vxml
:
<?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.1" >
<menu dtmf="true">
<property name="inputmodes" value="dtmf"/>
<prompt>Hello, Welcome! If you are an existing customer, press 1, For support press 2</prompt>
<choice dtmf="1" next="#existing"/>
<choice dtmf="2" next="#support"/>
</menu>
<form id="existing">
<record name="recording" beep="true" maxtime="100s">
<block>
<prompt>Please wait while we transfer the call</prompt>
</block>
<transfer name="MyCall" dest="tel:+911111111111" bridge="true" connecttimeout="20s"/>
<filled>
<submit next="call_inbound.php" method="post" namelist="recording" enctype="multipart/form-data"/>
</filled>
</record>
</form>
<form id="support">
<record name="recording" beep="true" maxtime="100s">
<block>
<prompt>Please wait while we transfer the call</prompt>
</block>
<transfer name="MyCall" dest="tel:+9111111111111" bridge="true" connecttimeout="20s"/>
<filled>
<submit next="call_inbound.php" method="post" namelist="recording" enctype="multipart/form-data"/>
</filled>
</record>
</form>
</vxml>
您知道xml中的错误是什么吗?xml中似乎有一些错误。如果我去掉记录标签,它就能正常工作。
谢谢
发布于 2015-08-08 18:54:57
您不能将表单项(如块和传输)放入另一个表单项中(即在您的情况下)。使用验证VoiceXML编辑器并使用XSD模式进行验证。
https://stackoverflow.com/questions/31890404
复制相似问题