我想通过xml脚本播放ivr。我已经编辑了一个正在运行的脚本,但是当我拨打ivr extn(820)号码时,它无法播放。每当我拨打820呼叫时,在2秒后才断开连接,并且没有任何内容像ivr一样播放。我将OpenUC用作IPPBX,并希望在其中为用户创建ivr。有人告诉我这个脚本有什么问题吗?
<include>
<menu name="test_ivr"
greet-long="/var/sipxdata/mediaserver/data/ivrscript/CoralIVR/prompts/main.wav"
greet-short="/var/sipxdata/mediaserver/data/ivrscript/CoralIVR/prompts/main.wav"
invalid-sound="/var/sipxdata/mediaserver/data/ivrscript/CoralIVR/prompts/main.wav"
exit-sound="/var/sipxdata/mediaserver/data/ivrscript/CoralIVR/prompts/main.wav"
confirm-macro=""
confirm-key=""
tts-engine="flite"
tts-voice="rms"
confirm-attempts="3"
timeout="10000"
inter-digit-timeout="2000"
max-failures="3"
max-timeouts="3"
digit-len="4">
<entry action="menu-exec-app" digits="1" param="execute_extension limit:'hash ivr in',set:acc_code=cucu,playback:/var/sipxdata/mediaserver/data/ivrscript/CoralIVR/prompts/one .wav,system:/home/george/alex/test.sh,bridge:sofia/$${domain}/[email protected],hangup inline"/>
<condition field="destination_number" expression="^1234$" require-nested="true">
<condition field="destination_number" expression="1">
<entry action="menu-exec-app" param="execute_extension limit:'hash ivr in',set:acc_code=cucu,playback:/var/sipxdata/mediaserver/data/ivrscript/CoralIVR/prompts/four.wav,system:/home/george/alex/test.sh,bridge:sofia/$${domain}/[email protected],hangup inline"/>
</condition>
<condition field="destination_number" expression="2">
<entry action="menu-exec-app" param="execute_extension limit:'hash ivr in',set:acc_code=cucu,playback:/var/sipxdata/mediaserver/data/ivrscript/CoralIVR/prompts/three.wav,system:/home/george/alex/test.sh,bridge:sofia/$${domain}/[email protected],hangup inline"/>
</condition>
<condition field="destination_number" expression="3">
<entry action="menu-exec-app" param="execute_extension limit:'hash ivr in',set:acc_code=cucu,playback:/var/sipxdata/mediaserver/data/ivrscript/CoralIVR/prompts/five.wav,system:/home/george/alex/test.sh,bridge:sofia/$${domain}/[email protected],hangup inline"/>
</condition>
</condition>
您好,脚本中的标签</menu> </include>
不完整。我建议您在调用XML脚本之前,先对其进行验证。