VoiceGuide IVR Software Main Page
Jump to content

Scripting Com Object Hangs

Recommended Posts

I have a 64 bit machine (2008 r2) running voice guide (current), all works well except I have made a com object in Visual Studio .Net 4.0 and registered it. I can create a vbs file and run it and the object works no problems. When I put it into a VBS script inside of Voice Guide the object simply hangs at that point and there is a Wscript*32 left running in the process list.

 

I have made the object 32 bit, and 64 bit. I have regasm.exe the object with both the 32 bit variant and 64 bit variant. Again, I have directly run c:\windows\syswow64\wscript.exe on a test script with the object and it works fine, only inside of Voice Guide is it not working.

 

Any ideas? (the script is below)

 

____________________________________________________________

this vbs script works from the command line or double clicking

set o = CreateObject("AccelTimeV2.Work")

s = o.InitCall()

msgbox o.RunModule("test", "0004", "9533", "employeedata")

 

_______________________________________________________

this below is the voiceguide script that doesn't work

 

dim vg

dim o

dim sSession

dim emp_num

dim ssn

dim sRet

 

set vg = CreateObject("vgservices.CommandLink")

'hangs here on the create object

set o = CreateObject("AccelTimeV2.Work")

 

emp_num = "$RV[GetEmpNum]"

ssn = "$RV[GetSsn]"

vg.RVSet $RV_LINEID, "emp_num" emp_num

vg.RVSet $RV_LINEID, "ssn" ssn

 

sSession = o.InitCall()

vg.RVSet $RV_LINEID, "session" sSession

 

sRet = o.RunModule("test", emp_num, ssn, "employeedata")

vg.RVSet $RV_LINEID, "result" sRet

 

if InStr(1, sRet, "error") <> 0 then

vg.Run_ResultReturn $RV_LINEID, "error"

elseif InStr(1, sRet, "no employee") <> 0 then

vg.Run_ResultReturn $RV_LINEID, "not found"

elseif InStr(1, sRet, "Clocked In") <> 0 then

vg.Run_ResultReturn $RV_LINEID, "clockIn"

else

vg.Run_ResultReturn $RV_LINEID, "clockOut"

end if

 

set o = nothing

set vg = nothing

Share this post


Link to post

Have you used Admin_TraceLogAdd calls before and after the

set o = CreateObject("AccelTimeV2.Work")

line to confirm that the error occurs on the CreateObject line?

 

Can you .ZIP up the AccelTimeV2.Work Project directory and post it here?

Share this post


Link to post

Yes, it is clearly on the createobject call, I can not give you the source project, however, after more testing, it must be an installation issue with VoiceGuide as I am unable to createobject on any object. We are re-installing from scratch. Is is possible that VoiceGuide requires installation from the Administrator account only? We are a fully privlidged user, and the service is running under our account, but we are unable to createobject for something as simple as WScript.Shell

Share this post


Link to post

VoiceGuide needs to be installed as a user that has privileges to start system programs/services, create new objects etc. ie. an Administrator.

 

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

Best approach is to just use the Administrator account when installing Dialogic Drivers. Note that a user that is part of the 'Administrator' group does not have the same privileges as the actual Administrator account. On many systems the actual Administrator account needs to be explicitly enabled first before it can be used.

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
×