VoiceGuide IVR Software Main Page
Jump to content

Moving To Fail When Trying To Run A Vbscript Or A Program

Recommended Posts

I am new to this IVR concept, i have refered the HELP document which was provided with VoiceGuide and started building the basic applications.

I need help from you all as, i am facing some problems and bugs.

When i am trying to run a VBScript or a Program Even on Succesfully executing the Command in both the scenario the Control is moving to failure.

I have attached my both the VBScript files.

Any help to solve these bugs is appreciated.

And suggest me any books that i can download from internet which give the information in detail about how to use modules in IVR...

Thanks .

VBScript_Demo.vgs

Run_Program.vgs

Share this post


Link to post

From http://www.voiceguide.com/vghelp/source/html/modrunprogram.htm :

 

Paths Tab

 

Wait until program finishes

 

If the result file contains some data, then the "Success" path is taken. If the result file is empty then the "Fail" path is taken. If the program could not be started then the "Fail' path is taken.

 

Don't Wait

 

If the program was started successfully then the "Success" path is taken. If the program could not be started then the "Fail' path is taken.

 

as you have a "Wait until program finishes" type option selected in the Run EXE/Script modules then VG looks for the result file or some other indication of outcome:

 

Returning data from ran program back to VoiceGuide

 

There are two ways in which the ran program can return data back to VoiceGuide:

 

Calling VoiceGudie's COM functions. eg: Run_ResultReturn

 

or:

 

Creating a 'Result File' which is then read in by VoiceGuide.

 

eg. in your VBScript module change this:

 

Const ForReading = 1
Const ForWriting = 2
Const ForAppending = 8
set fso = CreateObject("Scripting.FileSystemObject")
set tsFile = fso.OpenTextFile("C:\LogCalls.txt", ForAppending, True)
tsFile.WriteLine "$RV_STARTTIME, $RV[Get DeviceNo]"
tsFile.Close
set tsFile = Nothing
set fso = Nothing

 

to this:

 

Const ForReading = 1
Const ForWriting = 2
Const ForAppending = 8
set fso = CreateObject("Scripting.FileSystemObject")
set tsFile = fso.OpenTextFile("C:\LogCalls.txt", ForAppending, True)
tsFile.WriteLine "$RV_STARTTIME, $RV[Get DeviceNo]"
tsFile.Close

set vg = CreateObject("vgServices.CommandLink")
vg.Run_ResultReturn $RV_LINEID, "success"
set vg = Nothing

set tsFile = Nothing
set fso = Nothing

 

also see http://www.voiceguide.com/vghelp/source/html/com_script_goto.htm etc. these are used often to jump to next module from VBScript.

 

Please post if you have any questions.

Share this post


Link to post

Thanks Suppport team, As you have suggested i have made the necessary changes now i am able to run successfully both the Scripts.

and i thanks you for giving the solution in detail and step by step process to solve the problem.

thanks again,

is there any book which is in detail that i can read to gain the knowledge of VOICEGUIDE other than VOICEGUIDE Help documentation.

Share this post


Link to post

Thanks for letting us know you have got it working.

 

The Help file is the only source of documentation. And if you have any questions or need clarifications etc then please post the questions on this support forum.

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
×