on 01-25-2014 10:04 AM
Is this resolved?
Can you give the solution for this..
Could you please explain more detail about your issue.
Thanks,
Raghavendra
I have given like this.
set params(interruptPrompt) true
set params(maxDigit) 1
but not able to skip the media by a key press.
proc act_Setup { } {
puts "\n PLAY WELCOME PROMPT"
leg setupack leg_incoming
leg proceeding leg_incoming
leg connect leg_incoming
media play leg_incoming flash:6900.au
}
proc act_GetDest { } {
puts "\n COLLECT ESCAPE KEY FROM USER"
set params(interruptPrompt) true
set params(maxDigit) 1
leg collectdigits leg_incoming param
}
proc act_GotDest { } {
global dest
puts "\n RECEIVED DIGITS"
set status [infotag get evt_status]
puts "\n DIGIT COLLECT STATUS = $status"
set dest [infotag get evt_dcdigits]
leg setup $dest callInfo leg_incoming
}
proc act_CallSetupDone { } {
puts "\n CALL SETUP"
set status [infotag get evt_status]
puts "\n CALL STATUS = $status"
if { $status == "ls_000"} {
puts "\n You have sucessfully placed the call to the destination !"
} else {
puts "\n Sorry your call was not connnected !"
call close
}
}
proc act_Cleanup { } {
puts "\n DISCONNECTING CALL"
set status [infotag get evt_status]
puts "\n STATUS is $status"
call close
}
#----------------------------------
# State Machine
#----------------------------------
set FSM(any_state,ev_disconnected) "act_Cleanup,same_state"
set FSM(CALL_INIT,ev_setup_indication) "act_Setup,MEDIAPLAY"
set FSM(MEDIAPLAY,ev_media_done) "act_GetDest,GETDEST"
set FSM(GETDEST,ev_collectdigits_done) "act_GotDest,PLACECALL"
set FSM(PLACECALL,ev_setup_done) "act_CallSetupDone,CALLDISCONNECTED"
set FSM(CALLDISCONNECTED,ev_disconnected) "act_Cleanup,same_state"
set FSM(CALLDISCONNECTED,ev_media_done) "act_Cleanup,same_state"
set FSM(CALLDISCONNECTED,ev_disconnect_done) "act_Cleanup,same_state"
fsm define FSM CALL_INIT
You are trying to collect digits after media is completed, try as below in act_setup procedure
media play leg_incoming flash:6900.au
set params(interruptPrompt) true
set params(maxDigit) 1
leg collectdigits leg_incoming params
set FSM(CALL_INIT,ev_setup_indication) "act_Setup,MEDIAPLAY"
set FSM(MEDIAPLAY,ev_collectdigits_done) "act_GotDest,PLACECALL"
Thanks,
Raghavendra
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: