0

我正在使用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中似乎有一些错误。如果我删除记录标签,它会起作用。

谢谢

4

1 回答 1

2

您不能将表单项(如阻止和传输)放入另一个表单项(即在您的情况下)。使用验证 XML 编辑器并使用 VoiceXML XSD 模式进行评估。

于 2015-08-08T18:54:57.357 回答