VoiceGuide IVR Software Main Page
Jump to content

VoiceGuide cannot run .NET script

Recommended Posts

I am trying to make use of an encryption/decryption VBS using the .NET framework

The script will run through windows on the command line, but will error when ran through a voiceguide script module. The vgEngine logs suggest switching the script engine to WSH, which I have, but this has not resolved the issue.

I have the required .NET framework installed.

0630_1131_vgEngine.txt

Share this post


Link to post

Attached trace captures system startup and 6 calls.

Only on 2 of those calls was the "Run Script" module used, and in both cases it was just a VBS that comes with the demo "Credit Card Payment" callflow.

Did you post the wrong vgEngine trace?

 

113319.723  19   1   1     1 state [Save Data to File VBS] RunScript |
113319.723  19   1   1     1 t     timer set   10 sec : EV_TIMEOUT_GOTOMODULE
113319.724  19   1   1     1       modvbs QueueUserWorkItem vbScript
113319.730  12   1   1     1 task  scr Run_VBS vgm=10, file=, RunUsingClearScript=True
113319.730  12   1   1     1 state [Save Data to File VBS] RunScript vbs, onhold= |
113319.730  12   1   1     1       rv    replace start
------------------------------
Const ForReading = 1
Const ForWriting = 2
Const ForAppending = 8
set fso = CreateObject("Scripting.FileSystemObject")
set tsFile = fso.OpenTextFile("c:\output.txt", ForAppending, True)
tsFile.WriteLine FormatNumber(Timer, 2) & ": $RV_STARTTIME, $RV_CIDNUMBER, $RV_CIDNAME, $RV_DNIS, $RV[Get Client ID], $RV[Get Card Number], $RV[Get Expiry Date], $RV[Get Amount]"
tsFile.Close
set tsFile = Nothing
set fso = Nothing

------------------------------

 

121106.811  19   1   1     5 state [Save Data to File VBS] RunScript |
121106.811  19   1   1     5 t     timer set   10 sec : EV_TIMEOUT_GOTOMODULE
121106.811  19   1   1     5       modvbs QueueUserWorkItem vbScript
121106.811  12   1   1     5 task  scr Run_VBS vgm=10, file=, RunUsingClearScript=True
121106.811  12   1   1     5 state [Save Data to File VBS] RunScript vbs, onhold= |
121106.812  12   1   1     5       rv    replace start
------------------------------
Const ForReading = 1
Const ForWriting = 2
Const ForAppending = 8
set fso = CreateObject("Scripting.FileSystemObject")
set tsFile = fso.OpenTextFile("c:\output.txt", ForAppending, True)
tsFile.WriteLine FormatNumber(Timer, 2) & ": $RV_STARTTIME, $RV_CIDNUMBER, $RV_CIDNAME, $RV_DNIS, $RV[Get Client ID], $RV[Get Card Number], $RV[Get Expiry Date], $RV[Get Amount]"
tsFile.Close
set tsFile = Nothing
set fso = Nothing

------------------------------

 

extract of actions/states on the 6 calls:

113226.013  19   1   1     1 state [Get Client ID] Number Input |
113226.032  19   1   1     1 state [Get Client ID] Playing wav (PayGetId.wav) |
113236.798  19   1   1     1 state [Get Client ID] Number Input 1 |
113237.199  19   1   1     1 state [Get Client ID] Number Input 12 |
113237.619  19   1   1     1 state [Get Client ID] Number Input 123 |
113238.171  19   1   1     1 state [Get Client ID] Number Input 1234 |
113239.244  19   1   1     1 state [Get Card Number] Number Input |
113239.244  19   1   1     1 state [Get Card Number] Playing wav (PayGetCc.wav) |
113244.965  19   1   1     1 state [Get Card Number] Number Input 1 |
113245.313  19   1   1     1 state [Get Card Number] Number Input 12 |
113245.636  19   1   1     1 state [Get Card Number] Number Input 123 |
113245.973  19   1   1     1 state [Get Card Number] Number Input 1234 |
113247.473  19   1   1     1 state [Get Card Number] Number Input 12345 |
113248.039  19   1   1     1 state [Get Expiry Date] Number Input |
113248.040  19   1   1     1 state [Get Expiry Date] Playing wav (PayGetExp.wav) |
113254.566  19   1   1     1 state [Get Expiry Date] Number Input 0 |
113255.058  19   1   1     1 state [Get Expiry Date] Number Input 01 |
113255.970  19   1   1     1 state [Get Expiry Date] Number Input 012 |
113256.245  19   1   1     1 state [Get Expiry Date] Number Input 0122 |
113256.690  19   1   1     1 state [Get Amount] Number Input |
113256.691  19   1   1     1 state [Get Amount] Playing wav (PayGetAmount.wav) |
113304.201  19   1   1     1 state [Get Amount] Number Input 1 |
113304.976  19   1   1     1 state [Say Amount] Say Numbers: 1 as Amount - Cents |
113310.712  19   1   1     1 state [Say Card Nbr] Say Numbers: 12345 as Digits |
113319.723  19   1   1     1 state [Save Data to File VBS] RunScript |
113319.730  12   1   1     1 state [Save Data to File VBS] RunScript vbs, onhold= |
113319.748  12   1   1     1 state [Say Thanks...] Playing wav (PayThankyou.wav) |
115714.565  19   1   1     2 state [set DXCH_SPEECHPLAYTHRESH] Evaluate [-18] |
115714.574  19   1   1     2 state [init count_yes_answer] Evaluate [0] |
115714.575  19   1   1     2 state [can_you_hear_me] Playing wav (auto_warranty_can_you_hear_me.wav) |
115714.591  19   1   1     2 state [can_you_hear_me] Speech Recognition ms-local |
115725.912  19   1   1     2 state [no_response_heard] Playing wav (no_resp_heard.wav) |
115754.749  19   1   1     3 state [set DXCH_SPEECHPLAYTHRESH] Evaluate [-18] |
115754.750  19   1   1     3 state [init count_yes_answer] Evaluate [0] |
115754.751  19   1   1     3 state [can_you_hear_me] Playing wav (auto_warranty_can_you_hear_me.wav) |
115806.135  19   1   1     3 state [no_response_heard] Playing wav (no_resp_heard.wav) |
120226.557  19   1   1     4 state [Get Client ID] Number Input |
120226.557  19   1   1     4 state [Get Client ID] Playing wav (PayGetId.wav) |
120233.130  19   1   1     4 state [Get Client ID] Number Input 1 |
120233.428  19   1   1     4 state [Get Client ID] Number Input 11 |
120233.920  19   1   1     4 state [Get Client ID] Number Input 111 |
120234.233  19   1   1     4 state [Get Client ID] Number Input 1111 |
120234.751  19   1   1     4 state [Get Card Number] Number Input |
120234.752  19   1   1     4 state [Get Card Number] Playing wav (PayGetCc.wav) |
120246.692  19   1   1     4 state [Get Card Number] Playing wav (PayGetCc.wav) |
121020.505  19   1   1     5 state [Get Client ID] Number Input |
121020.505  19   1   1     5 state [Get Client ID] Playing wav (PayGetId.wav) |
121030.375  19   1   1     5 state [Get Client ID] Number Input 1 |
121031.444  19   1   1     5 state [Get Card Number] Number Input |
121031.445  19   1   1     5 state [Get Card Number] Playing wav (PayGetCc.wav) |
121036.963  19   1   1     5 state [Get Card Number] Number Input 1 |
121037.589  19   1   1     5 state [Get Expiry Date] Number Input |
121037.589  19   1   1     5 state [Get Expiry Date] Playing wav (PayGetExp.wav) |
121043.862  19   1   1     5 state [Get Expiry Date] Number Input 1 |
121044.053  19   1   1     5 state [Get Expiry Date] Number Input 12 |
121044.415  19   1   1     5 state [Get Expiry Date] Number Input 123 |
121044.727  19   1   1     5 state [Get Expiry Date] Number Input 1234 |
121045.101  19   1   1     5 state [Get Amount] Number Input |
121045.101  19   1   1     5 state [Get Amount] Playing wav (PayGetAmount.wav) |
121054.017  19   1   1     5 state [Get Amount] Number Input 1 |
121054.218  19   1   1     5 state [Get Amount] Number Input 12 |
121054.434  19   1   1     5 state [Get Amount] Number Input 123 |
121054.662  19   1   1     5 state [Get Amount] Number Input 1234 |
121055.085  19   1   1     5 state [Say Amount] Say Numbers: 1234 as Amount - Cents |
121101.612  19   1   1     5 state [Say Card Nbr] Say Numbers: 1 as Digits |
121106.811  19   1   1     5 state [Save Data to File VBS] RunScript |
121106.811  12   1   1     5 state [Save Data to File VBS] RunScript vbs, onhold= |
121106.820  12   1   1     5 state [Say Thanks...] Playing wav (PayThankyou.wav) |
121538.037  19   1   1     6 state [Get Client ID] Number Input |
121538.037  19   1   1     6 state [Get Client ID] Playing wav (PayGetId.wav) |
121553.475  19   1   1     6 state [Get Client ID] Playing wav (PayGetId.wav) |
121611.629  19   1   1     6 state [Say Goodbye] Playing wav (TimeoutThankyou.wav) | 

 

Share this post


Link to post

Traces shows that the VBScript was started and that it completed/exited soon after.

Suggest adding some Trace commands into the script to let you see how it progresses when stated from VoiceGuide.

Please see: https://www.voiceguide.com/vghelp/source/html/com_trace.htm

Also, the VBScript must return a 'Success" back to VoiceGuide. If an indication of a "Success" is not returned to VoiceGuide then VoiceGuide will take the "Fail" path to next module.

Please see: https://www.voiceguide.com/vghelp/source/html/com_run_resultreturn.htm

 

If you can post the actual VBscript or the VoiceGuide callflow then we can comment on what approach to take to debug.

The VBscript ran was saved in this file: C:\Program Files (x86)\VoiceGuide\temp\vbs_1_1.vbs


 

125351.753   7   1   1     1 state [Run VB Script 12] RunScript vbs, onhold= |
125351.759  17   1   1     1       path {TDX_CST} not found
125351.759   7   1   1     1       scr   will be waiting. wait=1, calling iModuleIdx=3 (setting iRunWait_VgmIdx to 3)
125351.761   7   1   1     1       moh not set
125351.762   7                     systemstatus : AvailablePhysicalMemory=12201 MB, currentProcess.HandleCount=9276
125351.762   7   1   1     1       scr   Run_VBS_UsingExternalInterpreter
125351.763   7   1   1     1       vbs SaveVbsToFile begin : C:\Program Files (x86)\VoiceGuide\temp\vbs_1_1.vbs
125351.765  34   1   1     1       vbs SaveVbsToFile script saved C:\Program Files (x86)\VoiceGuide\temp\vbs_1_1.vbs
125351.766   7   1   1     1       scr   start - Run_VBS_UsingExternalInterpreter [C:\Program Files (x86)\VoiceGuide\temp\vbs_1_1.vbs]
125351.767   7   1   1     1       scr   external on_hold_file=, iModuleIdx=3
125351.767   7   1   1     1       scr   start - Run_VBS_UsingExternalInterpreter using linelocal_ini_moduleRunScript_Engine: [cscript.exe]
125351.767   7   1   1     1       scr   start - Run_VBS_UsingExternalInterpreter [cscript.exe]["C:\Program Files (x86)\VoiceGuide\temp\vbs_1_1.vbs" //T:30] starttask_approach=simple_create_process
125351.769   7   1   1     1       StartProcessTask run:[cscript.exe] args:["C:\Program Files (x86)\VoiceGuide\temp\vbs_1_1.vbs" //T:30] pref_mode=simple_create_process bHideWindow=True
125351.771   7   1   1     1       StartProcessTask  preferred process start method - simple_create_process : started ok. dwProcessId=3308, hProcess=35188, dwThreadId=668, hThread=35184
125351.771   7   1   1     1       Run Script waiting. iRunWait=1 (hProcess=35188)
125351.771   7   1   1     1 t     timer set   0.5 sec : EV_TIMEOUT_CHECKONSTATE
125351.771   7   1   1     1       scr   Run_VBS_UsingExternalInterpreter returned
125352.243  12   1   1     1 timer EV_TIMEOUT_CHECKONSTATE
125352.243  12   1   1     1       q_scr +     evScriptEvent 9007 EV_TIMEOUT_CHECKONSTATE
125352.243  17   1   1     1       q_scr run   evScriptEvent 9007 EV_TIMEOUT_CHECKONSTATE action_id=0, crn=0 [0|0|0|0|0][|||||] 00:00:00 max:2|76.7888
125352.243  17   1   1     1       evscr EV_TIMEOUT_CHECKONSTATE 9007  0|0|0  || LineState=LS_RUN_WAITTILLFINISHED
125352.243  17   1   1     1       LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE lCode2Str=EV_TIMEOUT_CHECKONSTATE
125352.245  17   1   1     1       process exited. dwExitCode=0, hProcess=35188
125352.245  17   1   1     1       task completed. vgm=3, iRunWait=1, iRunWait_ExeResult_NextVgm=0=[]
125352.246  17   1   1     1       ExeResult_NextVgm has not been set. check for Result file.
125352.246  17   1   1     1       no result file returned from program (VGRUNRESULT_1.TXT).
125352.247  17   1   1     1       LsRunWaitTillFinished LsRunWaitChooseNext boolExeResult=False
125352.251  17   1   1     1       find_next_vgm module title is=[Play 4] (trigger_used={FAIL})
125352.251  17   1   1     1       task completed LsRunWaitChooseNext iNextVgm=4
125352.251  17   1   1     1 t     timer clear force=False(RunModule_begin)
125352.251  17   1   1     1       RunModule start Play, [Play 4], vgm=4, previous_vgm=3
125352.252  17   1   1     1       [Play 4] VGMTYPE_PLAY run start

 

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
×