VoiceGuide IVR Software Main Page
Jump to content

Error In Verify Entered Number Script

Recommended Posts

We are using Licensed VG 7. Here Below script i am trying to execute but giving error. Plz look at the code and Log file below.

 

set vg = CreateObject("vgServices.CommandLink")

 

For Ev = 1 To Len("$RV_ENTEREDNUMBER") - 2 Step 2

ESChr = Mid("$RV_ENTEREDNUMBER"), Ev + 1, 1)

K = K + ESChr

Next Ev

 

For Od = 1 To Len("$RV_ENTEREDNUMBER") Step 2

OSChr = Mid("$RV_ENTEREDNUMBER", Od, 1) * 2

If Len(OSChr) = 2 Then

OSChr = Val(Left(OSChr, 1)) + Val(Right(OSChr, 1))

End If

J = J + OSChr

Next Od

 

 

If (10 - Right((J + K), 1)) = Val(Right("$RV_ENTEREDNUMBER", 1)) Or (10 - Right((J + K), 1)) = 10 Then

sResult = "Success"

Else

sResult = "Fail"

End If

 

vg.Run_ResultReturn $RV_LINEID, sResult

set vg = Nothing

 

 

Emarat.zip

Share this post


Link to post

If this is ran as the Get Numbers' "Verify Entered Number" script then the returned values should be: "verify_passed" and "verify_failed" instead of "Success" and "Fail". Please see: http://www.voiceguide.com/vghelp/source/ht...odgetnumber.htm

 

Please also use Admin_TraceLogAdd (http://www.voiceguide.com/vghelp/source/html/com_admin_tracelogadd.htm) throughout the script to see how the script progresses and at which stage the fault occurs. Admin_TraceLogAdd will place entries in the vgEngine log file.

 

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
×