Mailing List Archive

Cisco IVR Hybrid Scripting and timers
Hi

I'd like to make TCL and VXML hybrid script to work that TCL script controls authorizing and VoiceXML script deals vith IVR. I'd like to stop VoiceXML script after client account is out of money. My problem is that I can't find a method how to stop VoiceXML dialog when timer event occurs. I can see timer event in AS5350 debugging log but it doesn't execute anything. I read from Cisco TCL application guide that command terminate should be a command to use - but still no effect. Has anyone any experience with such kind of applications? Or is it impossible to control VXML termination by TCL?


With Best Regards

Riho


PS. Some information about how I try to use it:

proc act_Authorized { } {
......
timer start leg_timer $creditTime leg_incoming
leg vxmldialog leg_incoming -u flash:/acme1.vxml -p parray
set commandh [infotag get last_command_handle]
}

proc act_ActiveTimer { } {
global commandh
command terminate $commandh
}

.....
set fsm(AUTHORIZE,ev_authorize_done) "act_Authorized CALLACTIVE"
set fsm(CALLACTIVE,ev_leg_timer) "act_ActiveTimer PLAYDISCONNECT"
set fsm(PLAYDISCONNECT,ev_setup_done) "act_PlayDisconnect CALLDISCONNECT"
.....


Debug log:

*Apr 27 08:05:36.387: //-1//TCL2:HN14E69330:/tcl_timerObjCmd:
*Apr 27 08:05:36.387: tcl_timerObjCmd: timer start leg_timer 10 leg_incoming
*Apr 27 08:05:36.387: //-1//TCL2:HN14E69330:/tcl_timerStartObjCmd: start leg_timer 10 leg_incoming
.....
*Apr 27 08:05:46.391: //427//APPL:/AppProcessEvent: Event 0x64C61C2C APP_EV_LEG_TIMER[1]:
*Apr 27 08:05:46.391: //427//APPL:/AppProcessEvent: LEG[427 ][VXML_HAN][LEG_INCCONNECTED(5)][Cause(0)][DEBUG(0)][UC=1 ]
*Apr 27 08:05:46.391: //-1//APPL:/AppFreeEvent: Freeing event 0x64C61C2C APP_EV_LEG_TIMER[1]