>> dial-peer voice 1000 voip
>> description IVR-Test
>> service voicemenu
>> destination-pattern 7299
>> session protocol sipv2
>> session target ipv4:1.1.1.1
>> codec g711ulaw
> session target убрать, destination-pattern заменить на "incoming called-number" Эффекта не дало.
Однако после экспериментов нашел, что работает в варианте:
dial-peer voice 1000 voip
service voicemenu out-bound
Скрипт запускается. Даже говорить начал. Трансфер работает.
Но вот такой распространенный на просторах инета уже нет.
После того, как проговариват - сброс.
<?xml version="1.0"?>
<vxml version="2.0" base="flash:/ext.vxml">
<var name="number"/>
<form id="main">
<property name="timeout" value="3s"/>
<block> <prompt>
<audio src="flash:/vxml-ivr/newfirst_announcement.wav"/>
</prompt> </block>
<field name="num" type="number">
<grammar type="application/grammar+regex">[0-9][0-9][0-9][0-9]</grammar>
<filled>
<assign expr="'phone://' + num" name="number"/>
<goto next="#ext"/>
</filled>
</field>
</form>
<form id="ext">
<transfer connecttimeout="20s" name="mycall" destexpr="number" bridge="true"> </transfer>
</form>
</vxml>
Проговаривает сообщение и сразу сброс.
ROUTER#debug voip application vxml
Default vxml debugging is on
ROUTER#
1w0d: //11891//VXML:/Open_CallHandoff:
1w0d: //11891//AFW_:/vapp_vxmldialog: Trusted=0, DNIS Map URI=, Code = {
}
1w0d: //11891//AFW_:/vapp_vxmldialog: After DNIS Map URI=flash:ext.vxml, Code = {
<?xml version="1.0"?>
<vxml version="2.0" base="flash:/ext.vxml">
<var name="n
}
1w0d: //-1//AFW_:/AFW_VxmlModule_New:
1w0d: //-1//AFW_:HN25CE0F10:/vapp_event_handoff:
1w0d: //-1//AFW_:HN25CE0F10:/vapp_event_handoff: bag->noofAvParams=4
1w0d: ah_dump_av_params: avParamp = 4E7A7C78, nooAvParams=4
1w0d: avParams[0]: att_name = dnis, att_type = 3
1w0d: avParams[0]: att_string=7299
1w0d: avParams[1]: att_name = ani, att_type = 3
1w0d: avParams[1]: att_string=7280
1w0d: avParams[2]: att_name = ccFlags, att_type = 1
1w0d: avParams[2]: att_num=0
1w0d: avParams[3]: att_name = hoContainer, att_type = 4
1w0d: avParams[3]: att_obj=0, att_subtype=1
1w0d: //-1//VXML:/vxml_tree_lock:
vxmlp=4A7AF330 usage_cnt=0
1w0d: //0/B965B39F879F/VXML:/vxml_parse:
1w0d: vxml_parse: XML_Parse success err=0
1w0d: //0/B965B39F879F/VXML:/vxml_session_delete:
1w0d: vxml_session_delete:mem_mgr_mempool_free: mempool=NULL
1w0d: vxml_session_delete:mem_mgr_mempool_free: mempool=NULL
1w0d: //-1//VXML:/vxml_create:
enter url=flash:ext.vxml tree_handle=4A7AF330
return_handle_add=4C65E470
1w0d: //11891//AFW_:/vapp_checksessionstate:
1w0d: //11891//AFW_:/vapp_checkifdone: Object: 1, Leg: 1
1w0d: //11891//AFW_:/vapp_driver: evtID: 217 vapp record state: 0
1w0d: //11891//AFW_:/vapp_get_type_detail:
1w0d: //11891/B965B39F879F/VXML:/vxml_offramp_mailhdrs_get:
1w0d: //11891//AFW_:/vapp_get_incoming_gtd_list:
1w0d: //11891/B965B39F879F/VXML:/vxml_start:
vxmlhandle=4DC8F8F0 vapphandle=4C6C1BC4 status=0 async_status=0
1w0d: //11891/B965B39F879F/VXML:/vxml_vxml_proc:
<vxml>
URI(abs):flash:ext.vxml
scheme=flash
path=ext.vxml
base=
URI(abs):flash:/ext.vxml
scheme=flash
path=/ext.vxml lang=none version=2.0
<var>: namep=number
1w0d: //11891/B965B39F879F/VXML:/vxml_expr_eval:
1w0d: expr=var number
1w0d: //11891/B965B39F879F/VXML:/vxml_jse_global_switch:
switch to scope(application)
1w0d: //11891/B965B39F879F/VXML:/vxml_form_proc:
1w0d: <form>: id=main scope=dialog
1w0d: //11891/B965B39F879F/VXML:/vxml_form_init:
current scope: dialog
vxml_counter_reset:
1w0d: //11891/B965B39F879F/VXML:/vxml_expr_eval:
1w0d: expr=var _in38
1w0d: //11891/B965B39F879F/VXML:/vxml_jse_global_switch:
switch to scope(dialog)
vxml_counter_reset:
1w0d: //11891/B965B39F879F/VXML:/vxml_expr_eval:
1w0d: expr=var num
1w0d: //11891/B965B39F879F/VXML:/vxml_formitem_select:
Status=VXML_STATUS_OK,
1w0d: //11891/B965B39F879F/VXML:/vxml_formitem_select:
AsyncStatus=VXML_STATUS_OK
1w0d: //11891/B965B39F879F/VXML:/vxml_block_proc:
1w0d: <block>:
1w0d: //11891/B965B39F879F/VXML:/vxml_item_attrs_proc:
name=_in38
1w0d: //11891/B965B39F879F/VXML:/vxml_prompt_proc:
<prompt>: timeout=3000 typeaheadflush=0 alternative=0
1w0d: //11891/B965B39F879F/VXML:/vxml_audio_proc:
<audio>:
URI(abs):flash:/vxml-ivr/newfirst_announcement.wav
scheme=flash
path=/vxml-ivr/newfirst_announcement.wav caching=fast fetchhint=invalid fetchtimeout=0 maxage=-1 maxstale=-1
1w0d: //11891/B965B39F879F/VXML:/vxml_vapp_media_play:
bargein=1 timeout=3000 typeaheadflush=0 vcr=0 rate=0 alternative=0 hotword=0 maxtime=0
1w0d: //11891/B965B39F879F/VXML:/vxml_vapp_media_play:
str=flash:/vxml-ivr/newfirst_announcement.wav cachable=1 timeout0 maxage=-1 maxstale=-1 codec=-1
1w0d: //11891//AFW_:/vapp_media_play:
1w0d: //11891//AFW_:/vapp_media_play: prompt=flash:/vxml-ivr/newfirst_announcement.wav:
1w0d: //11891/B965B39F879F/VXML:/vxml_leave_scope:
scope=anonymous
1w0d: //11891/B965B39F879F/VXML:/vxml_formitem_select:
loop cnt=0,
1w0d: //11891/B965B39F879F/VXML:/vxml_formitem_select:
Status=VXML_STATUS_OK,
1w0d: //11891/B965B39F879F/VXML:/vxml_formitem_select:
AsyncStatus=VXML_STATUS_OK
1w0d: //11891/B965B39F879F/VXML:/vxml_jse_global_switch:
switch to scope(dialog)
1w0d: //11891/B965B39F879F/VXML:/vxml_field_proc:
1w0d: <field>: type=number
1w0d: //11891/B965B39F879F/VXML:/vxml_item_attrs_proc:
name=num modal=aai prompt_counter=1
1w0d: //11891/B965B39F879F/VXML:/vxml_vapp_digit_collect:
termchar # minlength 0 maxlength 0 timeout 3000 interdigittimeout 10000 numPatterns=1hotword 0 abortKey
1w0d: //11891//AFW_:/vapp_digit_collect:
1w0d: //11891//AFW_:/vapp_digit_collect: numPatterns 1, minlength 0, maxlength 0, timeout 3000, interDigitTimeout 10000 hotword 0
1w0d: //11891/B965B39F879F/VXML:/vxml_formitem_select:
loop cnt=0,
1w0d: //11891/B965B39F879F/VXML:/vxml_load_immediate_done:
sidp->status=300000000
1w0d: //11891//AFW_:/vapp_checksessionstate:
1w0d: //11891//AFW_:/vapp_checkifdone: Object: 2, Leg: 1
1w0d: //11891//AFW_:/vapp_driver: evtID: 228 vapp record state: 0
1w0d: //11891//AFW_:/vapp_do_bargein: Input=2
1w0d: //11891//AFW_:/vapp_digit_collection_done:
1w0d: //11891//AFW_:/vapp_digit_collection_done: digits [], status [2], pattern []
1w0d: //11891/B965B39F879F/VXML:/vxml_digit_collection_done:
vxmlp 4A7AF330 status 2 async_status 300000000
1w0d: //11891/B965B39F879F/VXML:/vxml_digit_collection_done:
digits ()
1w0d: //11891/B965B39F879F/VXML:/vxml_digit_collection_done:
name ()
1w0d: //11891/B965B39F879F/VXML:/vxml_bind_lastprompt:
1w0d: //11891//AFW_:/vapp_checksessionstate:
1w0d: //11891//AFW_:/vapp_checkifdone: Object: 1, Leg: 1
1w0d: //11891//AFW_:/vapp_driver: evtID: 178 vapp record state: 0
1w0d: //11891//AFW_:/vapp_play_done: evID=178 reason=17, protocol=0, status_code=0, dur=5712, rate=0
1w0d: //11891/B965B39F879F/VXML:/vxml_media_done:
status 0 async_status 100040000 duration=5712 rate=0
1w0d: //11891/B965B39F879F/VXML:/vxml_save_lastprompt_info:
1w0d: //11891/B965B39F879F/VXML:/vxml_save_lastprompt_info:
1w0d: //11891//AFW_:/vapp_notify_play_done:
1w0d: //11891/B965B39F879F/VXML:/vxml_vapp_vcr_control_disable:
1w0d: //11891/B965B39F879F/VXML:/vxml_bind_lastprompt:
1w0d: //11891/B965B39F879F/VXML:/vxml_digit_collect_process:
vxmlp 4A7AF330 status 2 async_status 40000
1w0d: //11891//AFW_:/vapp_session_exit_event_name: Exit Event vxml.session.error
1w0d: //11891/B965B39F879F/VXML:/vxml_vapp_terminate:
vapp_status=2 ref_count 0
1w0d: //11891/B965B39F879F/VXML:/vxml_vapp_terminate:
CALL_ERROR; flash:ext.vxml
vxml session terminating with code=ERROR
vapp status=VAPP_FAIL vxml async status=VXML_ERROR_VAPP
1w0d: //11891//AFW_:/vapp_terminate:
1w0d: //11891//AFW_:/AFW_M_VxmlModule_Terminate:
1w0d: //11891//AFW_:/vapp_checksessionstate:
1w0d: //11891//AFW_:/vapp_checkifdone: Object: 1, Leg: 1
1w0d: //11891/B965B39F879F/VXML:/vxml_tree_delete:
vxmlp=4A7AF330, usage_cnt=1 url=flash:ext.vxml
1w0d: vxml_tree_delete:mem_mgr_mempool_free: mem_refcnt(4BAC9F40)=0 - mempool cleanup
1w0d: //11891/B965B39F879F/VXML:/vxml_session_delete:
1w0d: vxml_session_delete:mem_mgr_mempool_free: mem_refcnt(4E71E274)=0 - mempool cleanup
1w0d: vxml_session_delete:mem_mgr_mempool_free: mempool=NULL
1w0d: //11891//AFW_:/vapp_checksessionstate:
1w0d: //11891//AFW_:/vapp_checkifdone: Object: 0, Leg: 0
1w0d: //11891//VXML:/Dialog_VxmlDialogDone: handoff return string return-status=fail:
1w0d: //-1//AFW_:HN25CE0F10:/AFW_M_VxmlModule_Free:
1w0d: MOD[VxmlModule_4C6C1BC4_0_634261264] ( )