VoiceGuide IVR Software Main Page
Jump to content

Problem In 'run Vbscript' Module

Recommended Posts

HI,

 

we have severals servers with VG but we found something like this

 

 

122628.943 20 85 29 ev PlayEnd 85 273709 [0:0:27908]
122628.943 20 85 29 play end id=273709 (current id)
122628.943 20 85 29 rvns add cmb invite_SoundFileLength|3488
122628.943 20 85 29 q_scr + evScriptEvent 8001 EV_PLAY_FINISHED
122628.943 7 85 29 q_scr run evScriptEvent sCode=[EV_PLAY_FINISHED] iActionID=0, crn=0 [273709|0|0|0|0][|||||] 00:00:00 max:5|00:00:00.0490028
122628.943 7 85 29 se EV_PLAY_FINISHED 8001 273709|0|0 || LineState=LS_PLAY_PLAYMSG
122628.943 7 85 29 LsPlayMsg EV_PLAY_FINISHED,EV_PLAY_FINISHED
122628.944 7 85 29 path {EV_PLAY_FINISHED} not found
122628.944 7 85 29 rvns add cmb invite_LastPos|-1
122628.944 7 85 29 iCurrReplayCount=0, iMaxReplayCount=0
122628.944 7 85 29 t timer set 10 sec : EV_TIMEOUT_HANGUP
122628.944 7 85 29 t timer set 0 sec : EV_TIMEOUT_GOTOMODULE
122628.944 7 85 29 q_scr + evScriptEvent 9002 EV_TIMEOUT_GOTOMODULE
122628.944 7 85 29 q_scr run evScriptEvent sCode=[EV_TIMEOUT_GOTOMODULE] iActionID=0, crn=0 [0|0|0|0|0][|||||] 00:00:00 max:5|00:00:00.0490028
122628.944 7 85 29 se EV_TIMEOUT_GOTOMODULE 9002 0|0|0 || LineState=LS_PLAY_PLAYMSGFINISHED
122628.944 7 85 29 LsPlayMsgFinished EV_TIMEOUT_GOTOMODULE,EV_TIMEOUT_GOTOMODULE, [ ], [ ], []
122628.944 7 85 29 path {EV_TIMEOUT_GOTOMODULE} not found
122628.944 7 85 29 FindNextVgmTitleInPathList: next module title is=[call_me_back_connect_2_lines]
122628.945 7 85 29 t timer clear (force=False)
122628.945 7 85 29 RunModule start Run VB Script, [call_me_back_connect_2_lines], iModuleIdx=556, previous: vgm=566, vgs=7:7
122628.945 7 85 29 t timer set 30 sec : EV_TIMEOUT_HANGUP
122628.945 7 85 29 QueueUserWorkItem modVbs.Run_VBS
122628.945 22 85 29 task runscr Run_VBS vgm=556, file=, engine=[ClearScriptV8]
122628.945 22 85 29 runscr ClearScript strIni_moduleRunScript_Engine=ClearScriptV8
122628.945 22 85 29 state [call_me_back_connect_2_lines] RunScript, wait=0, onhold=
122628.945 22 85 29 rv replace start
------------------------------
set vg = CreateObject("vgServices.CommandLink")
vg.Bridge_Connect $RV_LINEID, $RV[line_no]
vg.Run_ResultReturn $RV_LINEID, "Success"
set vg = Nothing
------------------------------
122628.946 22 85 29 rv replace end [set vg = CreateObject("vgServices.CommandLink")
vg.Bridge_Connect 85, 37
vg.Run_ResultReturn 85, "Success"
set vg = Nothing]
122628.946 22 85 29 not saving script (strIni_moduleRunScript_SaveToFile is False|0)
122628.946 22 85 29 runscr not waiting, taking success path. wait=0
122628.946 22 85 29 q_scr + cmdFindNextVgm_Boolean_Run 0
122628.946 22 85 29 runscr call Execute or Run_VBS_UsingWSH
122628.946 22 85 29 runscr new VBScriptEngine call
122628.946 7 85 29 q_scr run cmdFindNextVgm_Boolean_Run sCode=[] iActionID=0, crn=0 [1|0|0|0|0][NoHangup|||||] 00:00:00 max:5|00:00:00.0490028
122628.946 7 85 29 runscr FindNextVgm_Boolean_RunNoHangup : looking for Success path
122628.946 7 85 29 FindNextVgmTitleInPathList: next module title is=[utrzymuj połączenie_callback]
122628.946 7 85 29 runscr FindNextVgm_Boolean_RunNoHangup : bool path found
122628.947 7 85 29 t timer clear (force=False)
122628.947 7 85 29 RunModule start Play, [utrzymuj połączenie_callback], iModuleIdx=557, previous: vgm=556, vgs=7:7
122628.947 7 85 29 [utrzymuj połączenie_callback] VGMTYPE_PLAY run start
122628.947 7 85 29 rvns add utrzymuj połączenie_callback_LastPos|0
122628.947 7 85 29 rvns add utrzymuj połączenie_callback_ReplayCount|0
122628.947 7 85 29 PrepareAndPlayWavAndTts start iModuleIdx=557, iPlayFileIdx=1, bMakeTtsFile=True, sSoundFileIs=
122628.947 7 85 29 PrepareAndPlayWavAndTTS sPlayFile=
122628.947 7 85 29 state [utrzymuj połączenie_callback] Playing wav ()
122628.947 22 85 29 runscr .Execute call
122628.947 7 85 29 q_scr + evScriptEvent 8001 EV_PLAY_FINISHED
122628.947 7 85 29 q_scr run evScriptEvent sCode=[EV_PLAY_FINISHED] iActionID=0, crn=0 [0|0|0|0|0][|||||] 00:00:00 max:5|00:00:00.0490028
122628.948 7 85 29 se EV_PLAY_FINISHED 8001 0|0|0 || LineState=LS_PLAY_PLAYMSG
122628.948 7 85 29 LsPlayMsg EV_PLAY_FINISHED,EV_PLAY_FINISHED
122628.948 7 85 29 path {EV_PLAY_FINISHED} not found
122628.948 7 85 29 rvns add utrzymuj połączenie_callback_LastPos|-1
122628.948 7 85 29 iCurrReplayCount=0, iMaxReplayCount=2
122628.948 7 85 29 t timer set 5 sec : EV_TIMEOUT_REPLAYMSG
122628.949 22 85 29 ERROR RunScript_ClearScript_ScriptEngineException
ERROR ErrorDetails: An error occurred during script execution
ERROR Message: An error occurred during script execution
ERROR Source: ClearScript
ERROR StackTrace: at Microsoft.ClearScript.ScriptEngine.ThrowScriptError(IScriptEngineException scriptError)
at Microsoft.ClearScript.Windows.WindowsScriptEngine.ThrowScriptError(Exception exception)
at Microsoft.ClearScript.Windows.WindowsScriptEngine.<>c__DisplayClass1e`1.<ScriptInvoke>b__1d()
at Microsoft.ClearScript.ScriptEngine.ScriptInvoke[T](Func`1 func)
at Microsoft.ClearScript.Windows.WindowsScriptEngine.ScriptInvoke[T](Func`1 func)
at Microsoft.ClearScript.Windows.WindowsScriptEngine.Execute(String documentName, String code, Boolean evaluate, Boolean discard)
at (Object , String )
at ..(Object oParam)
122628.949 22 85 29 note If this error persists try using Windows Scripting Host engine, by adding this entry to [moduleRunScript] section of VG.INI : Engine=WSH
122628.949 22 85 29 Run VBScript module using WSH instead as ClearScript error
122628.949 22 85 29 runscr start - Run_VBS_UsingWSH C:\Program Files (x86)\VoiceGuide\temp\vbs_85_1.vbs
122628.950 22 85 29 runscr on_hold_file=, iModuleIdx=556
122628.950 22 85 29 RunVbsFromFile_UseShellExecute [ClearScriptV8][cscript][C:\Program Files (x86)\VoiceGuide\temp\vbs_85_1.vbs][] timeout=30 (vbsPath=C:\Program Files (x86)\VoiceGuide\temp), start (new Process)
122628.950 22 85 29 objProcess.Start call
122629.026 22 85 29 ERROR v7.4.5546.36085 (09-Mar-15 20:02:50.85) RunVbsFromFile_UseShellExecute [C:\Program Files (x86)\VoiceGuide\temp\vbs_85_1.vbs][] : Nie można odnaleźć określonego pliku (can't find file)
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at (Object )
at ..(Int32 iLineId, String strVbsFname, String strArguments, Int32 iTimeout)
122629.026 22 85 29 ERROR runscr objVbsOrExeProcess not set ShellExec not a Success
122629.026 22 85 29 runscr VBScriptRun_FileRvReplaceAndRun returned error
122629.026 22 85 29 HangupCall (VBScriptRun_FileRvReplaceAndRunError) crn_in=0, L1=Connected, L2=Running_Normal, lPlayId=0, lRecId=0
122629.026 22 85 29 ccrn_connected=2c402e7, crn_NewCallArriving=0, crn_CurrentMakeCall=0, crn_InProcessOfReleasing=0
122629.026 22 85 29 rv add Hangup Source|VBScriptRun_FileRvReplaceAndRunError
122629.027 22 85 29 HangupCall sScriptToRunOnHangup=[temination.vgp]
122629.027 22 85 29 after hangup script as supplied: [temination.vgp]
122629.027 22 85 29 FindFullPathToScript_VgsOrVgp start [temination.vgp]
122629.027 22 85 29 after hangup script after searching: [temination.vgp]
122629.027 22 LoadedVgs_Find prepaid_temination.vgp at idx=3
122629.027 22 85 29 After Hangup script run first module
122629.027 22 85 29 L2_set Running_AfterHangup (called from StartAfterHangupScriptIfDefined)
It. looks like VG is not creating temporary vbs file?

Share this post


Link to post

in both test version of VG (7.4 and 7.5)

 

problem with executing VBScript:

 

 

with Engine=ClearScriptV8

 

172017.238 5 4 2 state [connect 2 lines] RunScript vbs, onhold=
172017.238 5 4 2 rv replace start
------------------------------
set vg = CreateObject("vgServices.CommandLink")
vg.Bridge_Connect $RV_LINEID, $RV[second_line]
vg.Run_ResultReturn $RV_LINEID, "Success"
set vg = Nothing
------------------------------
172017.238 5 4 2 rv replace end [set vg = CreateObject("vgServices.CommandLink")
vg.Bridge_Connect 4, 2
vg.Run_ResultReturn 4, "Success"
set vg = Nothing]
172017.238 5 4 2 not saving script (strIni_moduleRunScript_SaveToFile is False|0)
172017.238 5 4 2 runscr not waiting, taking success path. wait=0
...
172017.240 5 4 2 ERROR RunScript_ClearScript_ScriptEngineException
ERROR ErrorDetails: An error occurred during script execution
ERROR Message: An error occurred during script execution
ERROR Source: ClearScript
ERROR StackTrace: at Microsoft.ClearScript.ScriptEngine.ThrowScriptError(IScriptEngineException scriptError)
at Microsoft.ClearScript.Windows.WindowsScriptEngine.ThrowScriptError(Exception exception)
at Microsoft.ClearScript.Windows.WindowsScriptEngine.<>c__DisplayClass1e`1.<ScriptInvoke>b__1d()
at Microsoft.ClearScript.ScriptEngine.ScriptInvoke[T](Func`1 func)
at Microsoft.ClearScript.Windows.WindowsScriptEngine.ScriptInvoke[T](Func`1 func)
at Microsoft.ClearScript.Windows.WindowsScriptEngine.Execute(String documentName, String code, Boolean evaluate, Boolean discard)
at Microsoft.ClearScript.ScriptEngine.Execute(String code)
at (Object , String )
at ..(Object oParam)
172017.241 5 4 2 note If this error persists try using Windows Scripting Host engine, by adding this entry to [moduleRunScript] section of VG.INI : Engine=WSH
172017.241 5 4 2 engineVbs dispose call
172017.241 5 4 2 Run VBScript module using WSH instead (as ClearScript error). Save vbs to to file.
172017.241 5 4 2 delete existing: C:\Program Files (x86)\VoiceGuide\temp\vbs_4_1.vbs
172017.256 5 4 2 script written to (overwriting previous): C:\Program Files (x86)\VoiceGuide\temp\vbs_4_1.vbs
172017.256 5 4 2 runscr start - Run_VBS_UsingWSH C:\Program Files (x86)\VoiceGuide\temp\vbs_4_1.vbs
172017.256 5 4 2 runscr on_hold_file=, iModuleIdx=222
172017.256 5 4 2 RunVbsFromFile_UseShellExecute [ClearScriptV8][cscript][C:\Program Files (x86)\VoiceGuide\temp\vbs_4_1.vbs][] timeout=30 (vbsPath=C:\Program Files (x86)\VoiceGuide\temp), start (new Process)
172017.256 5 4 2 objProcess.Start call
172017.275 5 4 2 objProcess.Start returned. handle=7252, id=2868, hash=58739575, starttime=2015-11-16 17:20:17, HasExited=False
172017.275 5 4 2 runscr objVbsOrExeProcess started [C:\Program Files (x86)\VoiceGuide\temp\vbs_4_1.vbs], handle=7252, id=2868
172017.276 5 4 2 runscr objVbsOrExeProcess.WorkingSet=151552
172017.276 5 4 2 runscr Run_VBS_UsingWSH (ran due to ClearScript error) returned
and ver 7.4.
155609.783 5 4 2 state [call_me_back_connect_2_lines] RunScript, wait=0, onhold=
155609.784 5 4 2 rv replace start
------------------------------
set vg = CreateObject("vgServices.CommandLink")
vg.Bridge_Connect $RV_LINEID, $RV[call_me_back_match_call_call_me_back_line_no]
vg.Run_ResultReturn $RV_LINEID, "Success"
set vg = Nothing
------------------------------
155609.784 5 4 2 rv replace end [set vg = CreateObject("vgServices.CommandLink")
vg.Bridge_Connect 4, 2
vg.Run_ResultReturn 4, "Success"
set vg = Nothing]
155609.785 5 4 2 not saving script (strIni_moduleRunScript_SaveToFile is False|0)
155609.785 5 4 2 runscr not waiting, taking success path. wait=0
155609.785 5 4 2 q_scr + cmdFindNextVgm_Boolean_Run 0
155609.785 5 4 2 runscr call Execute or Run_VBS_UsingWSH
155610.026 5 4 2 ERROR RunScript_ClearScript_ScriptEngineException
ERROR ErrorDetails: An error occurred during script execution
ERROR Message: An error occurred during script execution
ERROR Source: ClearScript
ERROR StackTrace: at Microsoft.ClearScript.ScriptEngine.ThrowScriptError(IScriptEngineException scriptError)
at Microsoft.ClearScript.Windows.WindowsScriptEngine.ThrowScriptError(Exception exception)
at Microsoft.ClearScript.Windows.WindowsScriptEngine.<>c__DisplayClass1e`1.<ScriptInvoke>b__1d()
at Microsoft.ClearScript.ScriptEngine.ScriptInvoke[T](Func`1 func)
at Microsoft.ClearScript.Windows.WindowsScriptEngine.ScriptInvoke[T](Func`1 func)
at Microsoft.ClearScript.Windows.WindowsScriptEngine.Execute(String documentName, String code, Boolean evaluate, Boolean discard)
at (Object , String )
at ..(Object oParam)
155610.027 5 4 2 note If this error persists try using Windows Scripting Host engine, by adding this entry to [moduleRunScript] section of VG.INI : Engine=WSH
155610.027 5 4 2 Run VBScript module using WSH instead as ClearScript error
155610.029 5 4 2 runscr start - Run_VBS_UsingWSH C:\Program Files (x86)\VoiceGuide\temp\vbs_4_1.vbs
I found both of temporary vbs files.
where is problem source?

Share this post


Link to post

This is exactly the same VBScript module code that you have been using successfully only a few days ago, and have posted traces of it running successfully here:

and here:
What has changed on this system in the last few days that would prevent the VBScripts from running on this system? Were any anti-virus type applications installed?
If this problem report is from a different system that has this new system ever had any anti-virus type software installed on it that was not fully removed?
Also, in the first post of this thread you report that the temporary files were not being created, but then in the second post of this thread the temporary files are being created (and then are successfully ran when executed using the backup WSH (Windows Scripting Host) approach?)
What was changed on system that allowed the temporary files to be created?
Were some permissions changed, or was the VoiceGuide service ran under a different account, etc?

 

Share this post


Link to post

Hi,

 

second log file is from brand new system. New computer, no antivir, new instalation of VG.

 

 

no rules to find where is problem.

 

We are using vbscripts to record calls on other computers and it working properly but not in those two computers.

 

I come back to recovery point with vg 7.4. and again no temp file was created.

 

 

Have You any suggestion how to proceed installation to achieve properly worked system?

 

windows 7 proff., postgres odbc, no antivir, no windows defender, vg 7.4.

Share this post


Link to post

one more try.

 

same new server.

130011.037 6 vgEngine version : 7.4.5546.36085 (RELEASE Build)
130011.037 6 Compiled on : 09-Mar-15 20:02:50.85

 

 

temp file created. no action (bridge_connect)

vgEngine.txt

1117_ktTel.zip

Share this post


Link to post

Hi,

we found one dependence, on third test computer we haven't install any windows update and vbs working in VG script.

We don't know which update is source of VB script problems.

Share this post


Link to post

Looking up your account details we can see that you have a number (over 10) of active systems that are able to use the 'Run VBScript' module to execute VBScripts, so the next step would be to see what could possibly be different about this new system that prevents the 'Run VBScript' module from running VBScripts.

 

Was the installer perhaps just ran directly and not by using the 'right click' -> 'Run as Administrator' option?

Is the VoiceGuide service set to 'Log On As' 'Local System' or some other user?

Perhaps some anti-virus application that were installed on this system before were not uninstalled fully?

If this is not a brand new Windows install on a clean hard disk we would recommend reformatting the hard disk and installing just Windows + Dialogic + VoiceGuide on the system.

 

In your last post you say that you have been able to get a working install on another computer (the 'third test computer').

Please just proceed with all outstanding Windows Updates on that system. We are not aware of any Windows Update that stops the 'Run VBScript' modules from working.

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
×