整理日期:2019年11月7日
IVVR演示说明
店铺地址:https://shop66907778.taobao.com/
参考链接:https://blog.csdn.net/weixin_41486034/article/details/106240240
功能描述
拨入接通后直接播放主菜单视频,根据按键切换不同的视频,播放完毕后重新播放主菜单视频。
安装
先安装vc_redist_2017.x64.exe,压缩包解压到目标目录即可。
配置
Step1:配置IP
涉及文件conf/vars.xml
直接设置local_ip_v4,此IP为信令以及媒体IP,即FreeSwitchConsole.exe运行环境的IP;
Step2:配置信令端口
涉及文件conf/vars.xml
<!-- Internal SIP Profile -->
<X-PRE-PROCESS cmd="set" data="internal_auth_calls=true"/>
<X-PRE-PROCESS cmd="set" data="internal_sip_port=5070"/>
<X-PRE-PROCESS cmd="set" data="internal_tls_port=5071"/>
<X-PRE-PROCESS cmd="set" data="internal_ssl_enable=false"/>
<!-- External SIP Profile -->
<X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/>
<X-PRE-PROCESS cmd="set" data="external_sip_port=5080"/>
<X-PRE-PROCESS cmd="set" data="external_tls_port=5081"/>
<X-PRE-PROCESS cmd="set" data="external_ssl_enable=false"/>
internal_sip_port为需要认证呼入的sip端口
external_sip_port为无需认证呼入的sip端口
Step3:配置SIP注册密码
涉及文件conf/vars.xml
<X-PRE-PROCESS cmd="set" data="default_password=ehangcom"/>
运行
验证
用microsip拨测验证
账号配置
此处密码使用之前配置的SIP注册密码
SIP Server/Proxy即之前配置的 ip : internal_sip_port
媒体配置
配置完成后直接拨打9999即可看到视频,根据视频提示按1、2、3键可以切换到对应视频。
替换视频素材
视频素材在sounds/en/us/callie目录下,
mian.mp4为主菜单视频,1.mp4对应按键1视频,依此类推。
修改拨入号码
涉及配置文件conf/dialplan/default.xml
<extension name="app_tmp">
<condition field="destination_number" expression="^9999$">
<action application="answer"/>
<action application="execute_extension" data="gift_list XML default"/>
<action application="execute_extension" data="gift_list XML default"/>
<action application="execute_extension" data="gift_list XML default"/>
<action application="execute_extension" data="gift_list XML default"/>
<action application="execute_extension" data="gift_list XML default"/>
<action application="execute_extension" data="gift_list XML default"/>
<action application="execute_extension" data="gift_list XML default"/>
<action application="execute_extension" data="gift_list XML default"/>
</condition>
</extension>
修改节选内容的第二行中的”9999”即可。