VoiceGuide IVR Software Main Page
Jump to content

Script Code Doesn't Work

Recommended Posts

What is wrong with this? I am always getting the failed path. Also, is there an easy way to debug VB script in VG (check for syntax, errors, result codes... etc)?

 

set vg = CreateObject("vgServices.CommandLink")

i = val("$RV_ENTEREDNUMBER")

if i < 11 then

sResult = "verify_passed"

else

sResult = "verify_failed"

end if

vg.Run_ResultReturn $RV_LINEID, sResult

set vg = Nothing

Share this post


Link to post

Please post the vgEngine trace capturing the call, we can then see what happened.

Share this post


Link to post

Try just double-clicking the VBScript file created by VoiceGuide. If there are errors in it then you will see a message box. The script is at: C:\Program Files\VoiceGuide\temp\vbs_1_1.vbs - but check the vgEngine trace for name of script file if you dial in on a different line or change the script.

 

These vgEngine trace lines tell you which script file is the right one:

 

132550.484 6 1 copy of verification script ran: vbs_1_1.vbs

...

132550.484 6 1 RunVBScriptFile [wscript][C:\Program Files\VoiceGuide\temp\vbs_1_1.vbs][] timeout=0 (vbsPath=C:\Program Files\VoiceGuide\temp), start (new Process)

 

I'd try changing line:

 

i = val("$RV_ENTEREDNUMBER")

 

to:

 

i = $RV_ENTEREDNUMBER

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
×