Guest pascalganesh Report post Posted 11/29/2006 09:10 AM Hi, While Recording is in progress if the caller hangs up, how should I detect it? on {#} goto [Menu123] on {silence} goto [Menu123] on {EV_REMOTEPARTY_DISCONNECT} goto [updateStatusComplete] The above -does not- detect the caller hang-up. Here is the log 142841.13 8 db get RecordsetGetRowsMax 142841.17 8 db get 999 records. (row count=1) 142841.17 8 db update RVs start 142841.17 8 db update RVs cols=1 rows=1 142841.19 8 db test vRetData(0, 0)=1000 142841.19 8 db test CStr(vRetData(0, 0))=1000 142841.19 8 db about to close dbDbqDatabase 142841.20 8 db going down path [True] 142841.22 8 timer clear 142841.22 8 state [ConnectCaller] Playing 142841.22 8 state [ConnectCaller] Playing (C:\Wave\Authentication.wav) 142841.23 8 play set playid=173062 142841.28 8 PlaySoundStart ok [C:\Wave\Authentication.wav] 142841.28 8 timer clear 142841.28 8 RunModule PLAY end 142846.72 8 dtmf 2 (66178,50,2) 142846.72 8 ScriptEventCode 50 iLineState=1100 142846.73 8 LsPlayMsg 2 142846.75 8 PlaySoundStop err=0 142846.77 8 rv lg add [ConnectCaller]{2} 142846.77 8 timer clear 142846.77 8 state [updateStatusRecording] DB Query 142846.78 8 db ODBC mode used 142846.81 8 rv replace start: [update X set RecStatus = 'R' where spNo = $RV[Enter-3-Digit]] 142846.81 8 rv ns [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[scriptsPath]{C:\}[scriptPath]{C:}[$RV_STARTTIME]{11/29/2006 02:28:37:PM}[$RV_DEVICEID]{8}[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[$RV_CIDNUMBER]{}[$RV_DNIS]{}[DNIS]{}[Enter-3-Digit]{1}[Enter-3-Digit_PathTaken]{timeout}[Enter-3-Digit]{120}[Enter-3-Digit_PathTaken]{success}[Query-X_RowCount]{1}[Query-X_1_1]{1000}[ConnectCaller]{2} 142846.83 8 rv replace end: [update X set RecStatus = 'R' where spNo = 120] 142846.83 8 db About to execute a Modify type operation [update X set RecStatus = 'R' where spNo = 120] 142846.84 8 db Modify operation returned OK 142846.84 8 rv lg add [updateStatusRecording_RowCount]{1} 142846.86 8 timer clear 142846.86 8 state [Recording] Recording 142846.86 8 rv replace start: [C:\Record\$RV[Enter-3-Digit].wav] 142846.88 8 rv ns [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[scriptsPath]{C:\}[scriptPath]{C:}[$RV_STARTTIME]{11/29/2006 02:28:37:PM}[$RV_DEVICEID]{8}[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[$RV_CIDNUMBER]{}[$RV_DNIS]{}[DNIS]{}[Enter-3-Digit]{1}[Enter-3-Digit_PathTaken]{timeout}[Enter-3-Digit]{120}[Enter-3-Digit_PathTaken]{success}[Query-X_RowCount]{1}[Query-X_1_1]{1000}[ConnectCaller]{2}[updateStatusRecording_RowCount]{1} 142846.88 8 rv replace end: [C:\Record\120.wav] 142846.88 8 rv lg add [Recording]{C:\Record\120.wav} 142846.92 8 RecSoundStart file[C:\Record\120.wav] ok 142846.94 8 eng RecSoundStart [C:\Record\120.wav] 142846.94 8 timer set 600 EV_TIMEOUT_RECMAXTIME 142855.66 8 tapi callstate DISCONNECTED 66178 1 0 142855.66 8 ScriptEventCode 9250 iLineState=1201 142855.66 8 LsRecRecording EV_REMOTEPARTY_DISCONNECT 142855.69 8 RecSoundStopTruncBytes ok 142855.70 8 rec length RV: Recording_RecLen100ms = 88 142855.70 8 rv lg add [Recording_RecLen100ms]{88} 142855.70 8 rv lg add [Recording_EndRecCause]{disconnect} 142855.70 8 rv lg add [Hangup Time]{11/29/2006 02:28:55:PM} 142855.72 8 state Hanging up call... [During LsRecRecording] 142855.73 8 RecSoundStop ok 142855.73 8 PlaySoundStop err=0 142855.75 8 timer set 2 EV_TIMEOUT_WAITFORIDLEAFTERLINEDROP 142855.78 8 fnHangupCall end 142855.78 8 devstate NUMCALLS 0 0 142855.80 8 ScriptEventCode 8003 iLineState=900 142855.80 8 LsAwaitingCalls EV_REC_FINISHED 142856.09 8 tapi Reply (LineEvReply) ok 65903 0 LineCallState=DISCONNECTED 142856.09 8 devstate NUMCALLS 0 0 142856.11 8 tapi callstate IDLE 66178 0 0 142856.11 8 WorkingMode@Idle= 142856.11 8 timer clear 142856.11 8 WriteToLogFiles_CurrScriptOnly start 142856.13 WriteToLogFiles_DoWrite start (C:\VAM-Onward) 142856.14 8 timer set 1 EV_TIMEOUT_TIMETOREINITLINE 142857.13 8 timer fired EV_TIMEOUT_TIMETOREINITLINE 142857.13 8 ScriptEventCode 9008 iLineState=900 142857.13 8 LsAwaitingCalls EV_TIMEOUT_TIMETOREINITLINE 142857.13 8 ReinitTelephony due to IDLE 142857.16 8 tapic lineDeallocateCall(MainCall:66178) 0 142857.22 8 lineOpen(8)=> 142857.23 8 state Waiting for a call... 142857.23 8 LineHandle=65767 142857.23 8 ClearCallHandle called from ReinitAtIdle 142857.25 8 amchk set AMdet=False in Reinit@idle 142857.25 8 timer set 3 EV_TIMEOUT_ATERIDLE_ALLOWOUT 142857.52 dial start any summary:|6:dok=0|7:dok=0|8:rdy=0|9:dok=0| 142900.53 8 timer fired EV_TIMEOUT_ATERIDLE_ALLOWOUT 142900.53 8 ScriptEventCode 9013 iLineState=900 142901.52 dial start any summary:|6:dok=0|7:dok=0|8:dok=0|9:dok=0| 142919.27 0 sys cleanup Start Share this post Link to post
SupportTeam Report post Posted 11/29/2006 10:00 AM If you want to run a script after caller has hung up you should be using "After Hangup" options. See: http://www.voiceguide.com/vghelp/html/Call%20Finish.htm The paths in the script/module used during the call are not even looked at when end of call happens. VG will however start the "On Hangup" script if one is defined. Share this post Link to post
Guest pascalganesh Report post Posted 11/29/2006 11:31 AM Thank you for your reply. I added the following event in the Record Module to divert the flow on {#} goto [Menu123] on {silence} goto [Menu123] on {On Hangup} goto [updateStatusComplete] on {After Hangup} goto [updateStatusComplete] * During a recording * when the caller hangs up without pressing any key, none of the above is executed. Could you tell me the event that will be fired when a caller hangs up abruptly? Share this post Link to post
Guest pascalganesh Report post Posted 11/29/2006 01:12 PM I added the following event in the Record Module to divert the flow on {#} goto [Menu123] on {silence} goto [Menu123] on {On Hangup} goto [updateStatusComplete] on {After Hangup} goto [updateStatusComplete] * During a recording * when the caller hangs up without pressing any key, none of the above is executed. Could you tell me the event that will be fired when a caller hangs up abruptly so that I can use it instead of [On Hangup] or [After Hangup] Thanks Ganesh .................................Here is the log..................................................... 184454.53 9 tapi callstate DISCONNECTED 65721 1 0 184454.53 9 ScriptEventCode 9250 iLineState=1201 184454.53 9 LsRecRecording EV_REMOTEPARTY_DISCONNECT 184454.56 9 RecSoundStopTruncBytes ok 184454.56 9 rec length RV: Recording_RecLen100ms = 148 184454.56 9 rv lg add [Recording_RecLen100ms]{148} 184454.56 9 rv lg add [Recording_EndRecCause]{disconnect} 184454.58 9 rv lg add [Hangup Time]{11/29/2006 06:44:54:PM} 184454.58 9 state Hanging up call... [During LsRecRecording] 184454.59 9 RecSoundStop ok 184454.59 9 PlaySoundStop err=0 184454.59 9 timer set 2 EV_TIMEOUT_WAITFORIDLEAFTERLINEDROP 184454.61 9 fnHangupCall end 184454.61 9 devstate NUMCALLS 0 0 184454.61 9 ScriptEventCode 8003 iLineState=900 184454.63 9 LsAwaitingCalls EV_REC_FINISHED 184454.91 9 tapi Reply (LineEvReply) ok 65549 0 LineCallState=DISCONNECTED 184454.91 9 devstate NUMCALLS 0 0 184454.94 9 tapi callstate IDLE 65721 0 0 184454.94 9 WorkingMode@Idle= 184454.94 9 timer clear 184454.94 9 WriteToLogFiles_CurrScriptOnly start 184454.94 WriteToLogFiles_DoWrite start (C:\VAM-Onward) 184454.95 9 timer set 1 EV_TIMEOUT_TIMETOREINITLINE 184455.94 9 timer fired EV_TIMEOUT_TIMETOREINITLINE 184455.94 9 ScriptEventCode 9008 iLineState=900 184455.94 9 LsAwaitingCalls EV_TIMEOUT_TIMETOREINITLINE 184455.94 9 ReinitTelephony due to IDLE 184455.95 9 tapic lineDeallocateCall(MainCall:65721) 0 184456.02 9 lineOpen(9)=> 184456.03 9 state Waiting for a call... 184456.03 9 LineHandle=66011 184456.03 9 ClearCallHandle called from ReinitAtIdle 184456.03 9 amchk set AMdet=False in Reinit@idle 184456.03 9 timer set 3 EV_TIMEOUT_ATERIDLE_ALLOWOUT 184456.63 dial start any summary:|6:dok=0|7:dok=0|8:dok=0|9:rdy=0| 184459.33 9 timer fired EV_TIMEOUT_ATERIDLE_ALLOWOUT 184459.33 9 ScriptEventCode 9013 iLineState=900 184459.63 dial start any summary:|6:dok=0|7:dok=0|8:dok=0|9:dok=0| 184508.25 0 sys cleanup Start 184508.25 0 sys cleanup End Share this post Link to post
SupportTeam Report post Posted 11/29/2006 05:15 PM Have you read the Help file entry mentioned in the previous post? Read: http://www.voiceguide.com/vghelp/html/Call%20Finish.htm Share this post Link to post
Guest pascalganesh Report post Posted 11/30/2006 05:20 AM I did see the link you had given, but wanted to know which Function/Event name I should be giving to detect the hang up/Caller disconnect. Using the "when Call is Finished" worked! Thanks a bunch! Ganesh Share this post Link to post
SupportTeam Report post Posted 11/30/2006 05:39 AM but wanted to know which Function/Event name I should be giving to detect the hang up/Caller disconnect.No special name needs to be used. Just specify the script to be ran when call is ended and that is enough. Using the "when Call is Finished" worked!Not sure where you've used the "when Call is Finished" name, but to reiterate, no special name is needed anywhere - just select the script to be ran at end of call time and that is it. Share this post Link to post