VoiceGuide IVR Software Main Page
Jump to content

Return A Value From Vbs

Recommended Posts

Hi VG Team,

 

I made a script where from a entered number the first and the second number are displayed using the VBS1 module.

After that the script is writing some data to a file.

 

After doing all this the script must end but it is taking the fail path as you can see in my script.

 

on {fail} goto [say beep]

on {success} goto [Hangup the Call 6]

 

The beep starts at 134740.52

 

 

This is a part of the log file but I zipped it and send the whole file in an atachment.

 

 

134739.57 3 state [VBS2] Running VB Script...

134739.57 3 rv replace start (strlen>500)

134739.57 3 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\}[$RV_STARTTIME]{5/18/2007 1:47:31 PM}[$RV_DEVICEID]{3}[DlgcNetworkResource]{dxxxB1C3}[DlgcVoiceResource]{dxxxB1C3}

$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[scriptsPath]{F:\dat-01 IVR\10X\107 HoofdMap\SEND FAX TESTEN\RESULTAAT\}[$RV_CIDNUMBER]{}[EnterNr]{20000}[EnterNr_PathTaken]{success}[VBS1_ResultRetu

n]{20}

134739.57 3 vbs run [vbs_3_2.vbs], cmd [wscript "C:\Program Files\VoiceGuide\temp\vbs_3_2.vbs" //I //T:60]

134739.59 3 WARN ProcessHandle (1576) still not closed, closing now. (VBS module)

134739.59 3 Run Script waiting. iRunWait=1 (shellid=2552, process=1576)

134739.59 3 timer set 1 EV_TIMEOUT_CHECKONSTATE

134739.59 3 tw DialogicEvent 129,TDX_PLAY,36482,0,0,,,

134739.59 3 event TDX_PLAY, iCode=129 state=1501

134739.59 3 LsRunWaitTillFinished TDX_PLAY,EV_UNKNOWN_129

134739.59 3 path {TDX_PLAY} not found

134740.51 3 timer fired EV_TIMEOUT_CHECKONSTATE

134740.51 3 event EV_TIMEOUT_CHECKONSTATE, iCode=9007 state=1501

134740.51 3 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE,EV_TIMEOUT_CHECKONSTATE

134740.51 3 path {EV_TIMEOUT_CHECKONSTATE} not found

134740.51 3 task completed (shellid=2552, process=1576) vgm=33, iRunWait=1, iRunWait_ExeResult_NextVgm=0

134740.51 3 no result file returned from program (VGRUNRESULT_3.TXT or SHLRESLT.TXT)

134740.52 3 next module is [say beep] (idx=32)

134740.52 3 task completed LsRunWaitChooseNext iNextVgm=32

134740.52 3 fn RunModule start [Play,[say beep],32,,]

134740.52 3 timer clear

134740.52 3 Play Module start

134740.52 3 state [say beep] Playing

134740.52 3 state [say beep] Playing (beep1.wav)

134740.52 3 tw ConvertWav2Vox F:\dat-01 IVR\10X\107 HoofdMap\SEND FAX TESTEN\RESULTAAT\beep1.wav

 

Thank you in advanced

 

Can you tell me what the problem is?

 

I am sending you the log file.

 

The

SCRIPT.vgs

0518vgm.zip

Share this post


Link to post

Module [VBS2] is not returning a result indicating success, so the Fail path is taken.

 

From the Help file:

 

A "Success" or Result Variable list must be returned to VoiceGuide (either though a Run_ResultReturn COM function or a Result File) in order for it to go down the Success path.

If no result is returned then the "Fail" path is taken after the VBScript completes.

Calls to Script_Gosub(), Script_Goto() and Script_Return() functions result in immediate running of the next module.

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
×