首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >是否在VXML中出错?

是否在VXML中出错?
EN

Stack Overflow用户
提问于 2015-08-08 14:35:53
回答 1查看 103关注 0票数 0

我正在使用voicexml处理来自客户的呼入呼叫。下面是我使用的vxml

代码语言:javascript
运行
复制
<?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中似乎有一些错误。如果我去掉记录标签,它就能正常工作。

谢谢

EN

回答 1

Stack Overflow用户

发布于 2015-08-09 02:54:57

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31890404

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档