VoiceXML记录整个通话,包括菜单选项 [英] VoiceXML Record whole call, including menu options

查看:89
本文介绍了VoiceXML记录整个通话,包括菜单选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用VoiceXML(在Nexmo上)记录整个电话.

I'm trying to record a whole phone call using VoiceXML (on Nexmo).

我可以进行录制或提供菜单提示,并分别转发呼叫,但是我不知道如何一起执行.我想从头到尾记录通话,包括转接的通话部分.

I can make a recording or give menu prompts and forward a call seperately, but I can't work out how to do both together. I'd like to record the call from start to finish, including the forwarded call part.

我可以想象VoiceXML看起来像这样,但这不是有效的VoiceXML.

I would imagine the VoiceXML would look something like this, but this isn't valid VoiceXML.

<?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.1" >
<var name="callerid" expr="123" />
<form>

    <record name="recording" beep="true" dtmfterm="true" maxtime="100s">   
        <menu dtmf="true">
            <property name="inputmodes" value="dtmf"/>
            <audio src="server/forwardingnow.mp3"/>
            <choice dtmf="10" next="#sales"/>
            <choice dtmf="30" next="#support"/>
        </menu>
        <form id="sales">               
            <transfer name="MyCall" dest="tel:123123123" bridge="true" connecttimeout="20s"/>
        </form>
        <form id="support">  
            <transfer name="MyCall" dest="tel:123123123" bridge="true" connecttimeout="20s"/>
        </form>

        <catch event="connection.disconnect.hangup">
            <submit next="server/voice/savecall" method="post" namelist="recording callerid" enctype="multipart/form-data"/>
        </catch>

    </record>

</form>

推荐答案

无法使用标准的VoiceXML进行此操作,您必须使用供应商扩展名或将呼叫与录音应用程序一起召开会议(单个文档包含整个通话一次).

It is not possible to do this using standard VoiceXML, you either have to use vendor extensions or put your call in conference with a recording application (a single document with a single for the whole call).

这篇关于VoiceXML记录整个通话,包括菜单选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆