VoiceGuide IVR Software Main Page
Jump to content

Trouble With V5 Script Running On V7

Recommended Posts

I have a script that was originally created in Voiceguide V5, we have since moved to a 12port dialogic card and are now running V7 of Voiceguide.

 

The general paths and structure of the vgs file works fine, however the VBS scripts always return a fail and won't allow us to continue to the next section even with valid account numbers or credit cards.

 

One of the sections in question is "[checkIDlenOrderGas]" the main part of this section works fine, the VGRUNRESULT file is written and if you enter in valid details you get the word "SUCCESS" displayed in this file (FAIL if you insert the wrong details)

 

However the VbsHoldPlay= section always determines it has failed and sends you into a loop which eventuaslly after 2 retries disconnects you.

 

Has anyone else had an issue? I have this script running on our old machine running V6 and it works perfectly.

 

Running on a Windows XP (SP3) Intel computer with 2GB RAM, full admin rights and plenty of Disk.

Ccpay8.zip

Share this post


Link to post

Could you please post a copy of VoiceGuide's Traces which capture the call, this will allow us to see what happened on the call.

 

Trace files are created in VG's \log\ subdirectory.

 

When posting traces/scripts please .ZIP them up and post them as attachments.

 

Indicate time of call so that we know where in the trace file to look.

 

Share this post


Link to post

For trace files look in VoiceGuide v7 \log\ subdirectory.

 

We will need to see the vgEngine trace capturing the call.

 

Share this post


Link to post

Trace shows the module [checkIDlenOrderGas] executes fine, with evaluation of len("$RV[GetClientId]") = 10 successful and script then goes onto module [chksumIDordergas].

 

[chksumIDordergas] is a VBScript module.

The ran script is saved in file: C:\Program Files\VoiceGuide\temp\vbs_6_1.vbs

 

115927.296 6 6 script will be ran from file: C:\Program Files\VoiceGuide\temp\vbs_6_1.vbs

 

and it looks like the script completes within a second:

115928.390 6 6 Process.HasExited is true (System.Diagnostics.Process (wscript))

115928.390 6 6 task completed. vgm=121, iRunWait=1, iRunWait_ExeResult_NextVgm=0=[]

 

but no result file was created by the script:

115928.390 6 6 ExeResult_NextVgm has not been set. check for Result file.

115928.390 6 6 no result file returned from program (VGRUNRESULT_6.TXT).

 

Suggest you try running C:\Program Files\VoiceGuide\temp\vbs_6_1.vbs to see if it creates the Result File or not. You can debug C:\Program Files\VoiceGuide\temp\vbs_6_1.vbs by adding MsgBox statements to it, or if you have Enterprise license you can use Admin_TraceLogAdd ( http://www.voiceguide.com/vghelp/source/ht...tracelogadd.htm ) to add logging from VBScript in the vgEngine trace.

 

 

115927.281 6 6 state [checkIDlenOrderGas] Evaluate [len("$RV[GetClientId]") = 10]

115927.281 6 6 rv replace start: [len("$RV[GetClientId]") = 10]

115927.281 6 6 rvns: [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[scriptPath]{C:\ElgasVGuide\Prod\}[scriptsPath]{C:\ElgasVGuide\Prod\}[$RV_STARTTIME]{2009-06-16 11:59:00}[$RV_DEVICEID]{6}[DlgcVoice]{dxxxB1C4}[DlgcNetwork]{dxxxB1C4}[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[scriptsPath]{C:\ElgasVGuide\Prod\}[$RV_CIDNUMBER]{}[Welcome]{0}[retrysetOrder_Input]{0}[retrysetOrder]{0}[retry

count]{0}[retrysetOrder2_Input]{0}[retrysetOrder2]{0}[retrycount2]{0}[retrysetOr

d

er3_Input]{0}[retrysetOrder3]{0}[retrycount3]{0}[OrderGasGetID]{0235114788}[Orde

r

GasGetID_PathTaken]{success}[Evaluate 50_Input]{"0235114788"}[Evaluate 50]{0235114788}[GetClientId]{0235114788}

115927.281 6 6 rv replace end: [len("0235114788") = 10]

115927.281 6 6 eval[len("0235114788") = 10]

115927.281 6 6 CreateInstance ScriptControl objSC is: [system.__ComObject]

115927.281 6 6 rvns add [checkIDlenOrderGas_Input]{len("0235114788") = 10}

115927.281 6 6 rvns add [checkIDlenOrderGas]{True}

115927.281 6 6 Eval Expr result:[True]

115927.281 6 6 path {True} found (at offset 3)

115927.281 6 6 FindNextVgmTitleInPathList: next module title is=[chksumIDordergas]

115927.281 6 6 t timer clear (force=False)

115927.281 6 6 RunModule start [Run VB Script,[chksumIDordergas],121]

115927.281 6 6 state [chksumIDordergas] type: VB Script, iRunWait=1

115927.281 6 6 rv replace start (strlen>500)

115927.281 6 6 rvns: [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[scriptPath]{C:\ElgasVGuide\Prod\}[scriptsPath]{C:\ElgasVGuide\Prod\}[$RV_STARTTIME]{2009-06-16 11:59:00}[$RV_DEVICEID]{6}[DlgcVoice]{dxxxB1C4}[DlgcNetwork]{dxxxB1C4}[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[scriptsPath]{C:\ElgasVGuide\Prod\}[$RV_CIDNUMBER]{}[Welcome]{0}[retrysetOrder_Input]{0}[retrysetOrder]{0}[retry

count]{0}[retrysetOrder2_Input]{0}[retrysetOrder2]{0}[retrycount2]{0}[retrysetOr

d

er3_Input]{0}[retrysetOrder3]{0}[retrycount3]{0}[OrderGasGetID]{0235114788}[Orde

r

GasGetID_PathTaken]{success}[Evaluate 50_Input]{"0235114788"}[Evaluate 50]{0235114788}[GetClientId]{0235114788}[checkIDlenOrderGas_Input]{len("0235114788") = 10}[checkIDlenOrderGas]{True}

115927.296 6 6 script will be ran from file: C:\Program Files\VoiceGuide\temp\vbs_6_1.vbs

115927.296 6 6 delete existing: C:\Program Files\VoiceGuide\temp\vbs_6_1.vbs

115927.296 6 6 current objVbsOrExeProcess=

115927.296 6 6 RunVBScriptFile [wscript][C:\Program Files\VoiceGuide\temp\vbs_6_1.vbs][] timeout=60 (vbsPath=C:\Program Files\VoiceGuide\temp), start (new Process)

115927.296 6 6 objVbsOrExeProcess.Start call

115927.312 6 6 RunVBScriptFile just started. Handle=976, Id=1752, StartTime=16/06/2009 11:59:27 a.m., HasExited=False

115927.312 6 6 VBScript started [C:\Program Files\VoiceGuide\temp\vbs_6_1.vbs], ProcessHandle=[976], VbsOrExeProcess.WorkingSet=[86016]

115927.312 6 6 RunModule_Script_AfterScriptStarted start

115927.312 6 6 waiting. iRunWait=1 (process:976)

115927.312 6 6 t timer set 1 sec : EV_TIMEOUT_CHECKONSTATE

115928.390 4 6 timer EV_TIMEOUT_CHECKONSTATE

115928.390 4 6 qScr add evScriptEvent 9007 EV_TIMEOUT_CHECKONSTATE

115928.390 6 6 qScr run evScriptEvent EV_TIMEOUT_CHECKONSTATE, iActionID=0, crn=0[0|0|0|0|0][|||||]

115928.390 6 6 ScriptEvent EV_TIMEOUT_CHECKONSTATE ||

115928.390 6 6 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE lCode2Str=EV_TIMEOUT_CHECKONSTATE

115928.390 6 6 Process.HasExited is true (System.Diagnostics.Process (wscript))

115928.390 6 6 task completed. vgm=121, iRunWait=1, iRunWait_ExeResult_NextVgm=0=[]

115928.390 6 6 ExeResult_NextVgm has not been set. check for Result file.

115928.390 6 6 no result file returned from program (VGRUNRESULT_6.TXT).

Share this post


Link to post

In module [chksumIDordergas] you can try changing this line:

filename = "VGRUNRESULT_$RV_DEVICEID.TXT"

 

to this:

 

filename = "VGRUNRESULT_$RV_LINEID.TXT"

 

$RV_DEVICEID is not an officially supported $RV.

Share this post


Link to post

I cleared out the temp folder and tried running twice, the first time I keyed the number wrong and saw a resulting FAIL in the VGRUNRESULT File.

 

However the second time the VGRUNRESULT file came back with a SUCCESS, however I still got told it was not correct

 

Attached fresh copies, including the vbs file.

elgas_001.zip

Share this post


Link to post

The VGRUNRESULT file needs to be created in the same directory as the script itself (the .vgs file).

 

Looking at the VBScript it looks like the full path to the location of the written VGRUNRESULT file is not specified, so most likely the VGRUNRESULT file is not actually created in the same directory as the script itself when it is ran from VoiceGuide. (it is probably created in some Windows system or directory)

 

You should change the VBScript to include the full path to where the VGRUNRESULT file should be created.

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
×