VoiceGuide IVR Software Main Page
Jump to content

Com Support In Version 7

Recommended Posts

I am trying to write a "Verify Entered Number" script for a Get Numbers module in version 7. When I look at the log file, I see

 

 

 

hhmmss.sss 14 1 rem Run_ResultReturn [success]

hhmmss.sss 14 1 ERROR: COM interface not supported in this version.

 

Later I get "Verify task did not return any data. Fail path will be taken". No matter what I do in my script, it either failts or never completes.

 

Is this scripting supported in version 7? The vgEngine version is 7.0.3083.19271 (RELEASE Build)

 

thanks!

 

 

Share this post


Link to post

Are you perhaps using the "Professional" license on the system? COM/WCF/etc interface is only supported in the Enterprise (and Evaluation) versions of VoiceGuide.

Share this post


Link to post

OK, I think you nailed it. I can write VB scripts with the Professional version but cannot use COM objects?

 

Share this post


Link to post

Yes. The VoiceGuide COM objects are only available for use in the Enterprise version of VoiceGuide. (You can use other COM objects in The VBScripts in the Professional version).

Share this post


Link to post

One more question on this topic, please. Can you confirm that it would require the Enterprise version to effective use the "Verify Entered Number" tab for the Get Numbers function? If you must use the vgServices.CommandLink function, which is a VoiceGuide COM object, there is no way to validate the numbers entered since there is no other way to return a value from the script?

 

Although VBSCRIPTing is provided in the Professional version, it doesn't seem like you can do much with it. Am I missing something?

 

 

Share this post


Link to post

The COM Run_ResultReturn function is not the only way to return data from the VBScript. You can also use "Run Result" files

 

 

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

 

Once VoiceGuide detects that a VBScript has completed and no COM response was received beforehand then VoiceGuide will see if a "Result File" has been created by the script. If one has been created then VoiceGuide will read in it's contents and then determine what to do next based on the contents of the file.

 

The syntax of the Result File is the same as that used by the Run Program module. Please refer to the Run Program module Help file's section for more information.

Example : Creating Result File

The VBScript below demonstrates how the $RV_LINEIDResult Variable is used to generate a Result file from which the data is read back into VoiceGuide. Please note that using the COM function Run_ResultReturn() is a preferable way of returning information to VoiceGuide (it's faster) - but a result file can be used if there is no other way.

 

Dim iIndexDow, iIndexNasdaq, iIndexSP500

 

'Do some work here to retrieve the data and initialize

'the iIndexDow, iIndexNasdaq and iIndexSP500 variables

 

strResultVariables= "[indexDow]{" & iIndexDow & "}" & _

"[indexNasdaq]{" & iIndexNasdaq & "}" & _

"[indexSP500]{" & iIndexSP500 & "}"

 

iRet = WriteResultFile(strResultVariables)

 

Function WriteResultFile(strResult)

Const ForReading=1, ForWriting=2, ForAppending=8

filename = "VGRUNRESULT_$RV_LINEID.TXT"

Set fso = CreateObject("Scripting.FileSystemObject")

Set ts = fso.OpenTextFile(filename, ForWriting, True)

ts.WriteLine(strResult)

ts.Close

WriteResultFile=0

 

'always deallocate after use...

set ts = Nothing

set fso = Nothing

end function

 

Also see: http://www.voiceguide.com/vghelp/source/ht...drunprogram.htm

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
×