VoiceGuide IVR Software Main Page
Jump to content

After Hangup Script

Recommended Posts

Hi, I am trying to run a script once the call has finished - but it seems to be getting an error as you can see from the following code. Your help would be greatly appreciated. I have installed the latest 4.9.1 update along with the other file (as per a previous post).

 

72244 5 tapie linedevstate 2048 0 0

72244 5 tapie callstate OFFERING 65996 0 4

72254 5 Answer the call

72264 5 lineAnswer(65996) => 65979

72284 5 Lev_CallerID [0412051737,]

72324 5 tapie callinfo CALLEDID

72324 5 tapie callinfo ORIGIN

72334 5 tapie ring 0

72805 5 tapie callstate CONNECTED 65996,1,0

72815 5 WorkingModeTAPI=

72815 5 WorkingModeScript=

72825 5 Inband detection not enabled

72855 5 StartLoadedVgs start

72865 5 tapi Reply 65979 0

72865 5 [play_welcome] Playing

72865 5 tts generate start[Welcome to Shazam]

72865 5 tts generate end

72865 5 [play_welcome] Playing (C:\ivr\sound_files\welcome.wav)

73365 5 PlaySoundStart ok [C:\ivr\sound_files\welcome.wav]

73365 5 RunModule PLAY end

75328 5 wb(87287500)

75388 5 Play End line[5] (id=872875)

75408 5 LsPlayMsg EV_PLAY_FINISHED

75408 5 LsPlayMsgFinished EV_TIMEOUT_GOTOMODULE

75418 5 [detect_CID] Evaluate [$RV_CIDNUMBER]

75418 5 RVreplace start: [$RV_CIDNUMBER]

75418 5 RVreplace end: [0412051737]

75428 5 .Eval(0412051737)

75458 5 Eval Expr result:[412051737] stored in $RV[CID_DETECTED]

75458 5 [convert_CID] Evaluate ["61" & right($RV_CIDNUMBER,9)]

75458 5 RVreplace start: ["61" & right($RV_CIDNUMBER,9)]

75468 5 RVreplace end: ["61" & right(0412051737,9)]

75468 5 .Eval("61" & right(0412051737,9))

75478 5 Eval Expr result:[61412051737] stored in $RV[iCIDNUMBER]

75488 5 [get_call_details] Evaluate [year(date) & "-" & "$RV_MONTH-$RV_DAY-$RV_HOUR$RV_MINUTE"]

75488 5 RVreplace start: [year(date) & "-" & "$RV_MONTH-$RV_DAY-$RV_HOUR$RV_MINUTE"]

75488 5 RVreplace end: [year(date) & "-" & "6-6-1445"]

75488 5 .Eval(year(date) & "-" & "6-6-1445")

75498 5 Eval Expr result:[2003-6-6-1445] stored in $RV[CALL_DETAILS]

75498 5 [prepare_storage] Running vb script:[C:\ivr\ivr_scripts\system-P2HU_01.vgs]

94626 5 Loaded VbsAtHangup into:2

94686 5 ERROR 4.9.1 TW__LineEvCallState_Error:Subscript out of range

94686 5 tapi Reply 65962 0

Share this post


Link to post

Please open "system-P2HU_01.vgs" in the script editor and set the script's start module using "Edit->Script Properties" menu.

 

Having an old module name set as the "Starting Module" in the script would cause this error, as VoiceGuide does not now which module is the start module of the script.

 

This problem with script may happen if an old start module is deleted from the script, and the new start module has not been explicitly set using the "Edit->Script Properties" menu.

 

This issue is fixed in the 4.9.1 version of script editor onwards...

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×