VoiceGuide IVR Software Main Page
Jump to content

Log Recording To File

Recommended Posts

Example 1:

The VB Script below will append a line of text to the file C:\LogCall.txt - the line of text will contain information about start of the call, caller's telephone number and information entered by caller in module "EnterClientNumber". Result Variables are used in this script to allow information from VoiceGuide to be visible to the VB Script.

 

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_CIDNUMBER, $RV[EnterClientNumber]"

tsFile.Close

set tsFile = Nothing

set fso = Nothing

 

Hi,

 

I want using above VBS to record user interaction, but where I have to put in my script in the beggining or at the end? and I have many scripts link with another script should I write above VBS on ech script ?

 

Thanks

Anton

Share this post


Link to post

The best time to write out a log file is at the end of the call.

 

Have a look at the "Call Finish" section of VG Help file.

Online copy of this page is at:

http://www.voiceguide.com/vghelp/html/Call...ll%20Finish.htm

 

You can of course write out log files at any other time as well - when you choose to do it is up to you.

Result Variables once defined are visible in any subscripts or parent scripts for the duration of the call.

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
×