Jump to content


< Back to Forum


 

Vbs Is Not Running


  • Please log in to reply

#1 ahmed.muneer 10 August 2017 - 12:50 AM

Dear VG team,

Greetings.

 

kindly note am try to run a VBS which is defined in y VGS file but am facing the issue in the attached image.

 

Please advise.

  • Run_VBS_UsingExternalInterpretter.png


#2 SupportTeam 10 August 2017 - 06:57 AM

Can you please advise what is the VBS that you are trying to run? Have you confirmed that there are no errors in that VBS code?

 

The VBS to be executed would be saved in its own separate file in VoiceGuide's \temp\ sub-directory. Have you tried just double-clicking that file and confirm that it runs without any errors? (can also run from command line using cscript.exe or wscript.exe interpreters)

 

 

Posted screenshot shows that the task to run the VBS module script using an external VBS interpreter failed to start.

 

The external script interpreter would only be used if the VBScript itself had errors/problems when being executed by VoiceGuide's internal VBScript interpreter, or if it was explicitly selected for the external interpreter to be used (using config files or set during run-time).

 

 

Next, given that the task to run the external interpreter did not start:

 

Is there any anti-virus etc. type software installed on this system?

Such anti-virus programs usually prevent starting of external VBScripts, and need to be configured to allow VoiceGuide to start external VBScripts.

 

Has the VoiceGuide IVR service been set to log in using a different user account ? (by default it is set to run using the 'Local System' account at install time)

 

 

Please .ZIP up the vgEngine trace file which captured that call and post it here.

 

If you can post the VoiceGuide script as well then that would also help.

 

We can then see what is happening on the system and advise.



#3 ahmed.muneer 13 August 2017 - 04:50 PM

Dear VG team,

 

yes the VBS code is running fine but is not IVR is not starting kindly find the attachment the logs file. with the code.



#4 SupportTeam 13 August 2017 - 08:04 PM

The vgEngine and ktTel trace files seem to be incomplete, but other traces show the calls did arrive at system (from 380@192.168.42.204) and were answered by VoiceGuide (see below traces).

 

Please do the following:

 

  1. stop VoiceGuide service
  2. delete all files in VoiceGuide \log\ subdirectory
  3. start WireShark capture
  4. start VoiceGuide service
  5. place call into system
  6. wait a few seconds and then hang up
  7. stop WireShark capture and save it to .pcapng file
  8. stop VoiceGuide service
  9. .ZIP up contents of VoiceGuide \log\ subdirectory.
  10. post WireShark capture and VoiceGuide trace files here.

we can then see what is happenig on the system.

 

It looks like system is attached to a PBX and is registering as extension at this PBX. Is this correct? are calls placed into this system from extension on the PBX?

 

.

{ "call": {
  "crn": "8000001",
  "port": "1",
  "direction": "in",
  "time_start": "2017-08-13 09:24:39",
  "events": "
    092439.614|callstate|GCEV_OFFERED|380@192.168.42.204||192.168.42.204|||0|2|8|0
    092439.639|event|GCEV_OFFERED|380@192.168.42.204||192.168.42.204|||2|0|8|0
    092439.639|command|cmd_AnswerCall|||||0|0|0|0
    092439.753|event|GCEV_ANSWERED|||||2050|0|0|0
    092439.754|callstate|GCEV_ANSWERED|||||0|256|4|0
    092439.756|state|<offered> : cid=380@192.168.42.204 , dnis=192.168.42.204 connected|||||0|0|0|0
    092439.990|state|[Start] Playing wav ()|||||0|0|0|0
    092439.996|event|GCEV_ANSWERED|||||256|1|4|0
    092440.890|state|[Get TID] Number Input|||||0|0|0|0
    092440.896|state|[Get TID] Playing wav (AR Insert Terminal ID.wav)|||||0|0|0|0
    092440.903|command|cmd_PlayStart|||||765952|0|0|0
    092443.628|callstate|GCEV_DISCONNECTED|||||0|16384|64|0
    092443.631|event|GCEV_DISCONNECTED|||||16384|0|64|0
    092443.682|event||LineEvCallState_DISCONNECTED||||0|0|0|0
    092443.682|command|cmd_DropCall|||||0|0|0|0
    092443.699|callstate|GCEV_DROPCALL|||||0|1|32|0
    092443.731|event|GCEV_DROPCALL|||||1|0|32|0
    092443.752|callstate|GCEV_RELEASECALL|GCST_NULL||||2137|0|0|0
  ",
  "length": "4.138"
}},

{ "call": {
  "crn": "8000002",
  "port": "2",
  "direction": "in",
  "time_start": "2017-08-13 09:44:26",
  "events": "
    094425.967|callstate|GCEV_OFFERED|380@192.168.42.204||192.168.42.204|||0|2|8|0
    094425.969|event|GCEV_OFFERED|380@192.168.42.204||192.168.42.204|||2|0|8|0
    094425.970|command|cmd_AnswerCall|||||0|0|0|0
    094426.023|event|GCEV_ANSWERED|||||2050|0|0|0
    094426.023|callstate|GCEV_ANSWERED|||||0|256|4|0
    094426.024|state|<offered> : cid=380@192.168.42.204 , dnis=192.168.42.204 connected|||||0|0|0|0
    094426.028|state|[Start] Playing wav ()|||||0|0|0|0
    094426.028|event|GCEV_ANSWERED|||||256|1|4|0
    094426.937|state|[Get TID] Number Input|||||0|0|0|0
    094426.938|state|[Get TID] Playing wav (AR Insert Terminal ID.wav)|||||0|0|0|0
    094426.941|command|cmd_PlayStart|||||951997|0|0|0
    094428.303|callstate|GCEV_DISCONNECTED|||||0|16384|64|0
    094428.304|event|GCEV_DISCONNECTED|||||16384|0|64|0
    094428.307|event||LineEvCallState_DISCONNECTED||||0|0|0|0
    094428.307|command|cmd_DropCall|||||0|0|0|0
    094428.314|callstate|GCEV_DROPCALL|||||0|1|32|0
    094428.317|event|GCEV_DROPCALL|||||1|0|32|0
    094428.334|callstate|GCEV_RELEASECALL|GCST_NULL||||2137|0|0|0
  ",
  "length": "2.367"
}},


#5 ahmed.muneer 13 August 2017 - 08:20 PM

Dear VG Team,

 

kindly note that am placing the call from Avaya IPO



#6 ahmed.muneer 13 August 2017 - 08:21 PM

For more details please check the calls on the date August 10th.



#7 ahmed.muneer 13 August 2017 - 09:00 PM

Dear VG team
 
i have followed the below instruction, kindly find the attached logs



#8 SupportTeam 13 August 2017 - 09:08 PM

WireShark trace and the VoiceGuide traces shows call was answered and looks like user interacted with the script OK.

 

There seemed to be no issues with the call.

 

Did anything not work as expected?

{ "call": {
  "crn": "8000001",
  "port": "1",
  "direction": "in",
  "time_start": "2017-08-13 13:44:09",
  "events": "
    134408.987|callstate|GCEV_OFFERED|380@192.168.42.204||192.168.42.204|||0|2|8|0
    134409.006|event|GCEV_OFFERED|380@192.168.42.204||192.168.42.204|||2|0|8|0
    134409.007|command|cmd_AnswerCall|||||0|0|0|0
    134409.080|event|GCEV_ANSWERED|||||2050|0|0|0
    134409.081|callstate|GCEV_ANSWERED|||||0|256|4|0
    134409.082|state|<offered> : cid=380@192.168.42.204 , dnis=192.168.42.204 connected|||||0|0|0|0
    134409.227|state|[Start] Playing wav ()|||||0|0|0|0
    134409.233|event|GCEV_ANSWERED|||||256|1|4|0
    134410.103|state|[Get TID] Number Input|||||0|0|0|0
    134410.109|state|[Get TID] Playing wav (AR Insert Terminal ID.wav)|||||0|0|0|0
    134410.116|command|cmd_PlayStart|||||335164|0|0|0
    134416.779|state|[Get TID] Number Input 1|||||0|0|0|0
    134416.781|command|cmd_PlayStop|||||0|0|0|0
    134416.789|dtmf||1||||49|13|0|0
    134417.039|state|[Get TID] Number Input 12|||||0|0|0|0
    134417.039|dtmf||2||||50|13|0|0
    134417.340|state|[Get TID] Number Input 123|||||0|0|0|0
    134417.340|dtmf||3||||51|13|0|0
    134417.671|state|[Get TID] Number Input 1234|||||0|0|0|0
    134417.671|dtmf||4||||52|13|0|0
    134417.937|state|[Get TID] Number Input 12345|||||0|0|0|0
    134417.937|dtmf||5||||53|13|0|0
    134418.212|state|[Get TID] Number Input 123456|||||0|0|0|0
    134418.212|dtmf||6||||54|13|0|0
    134418.568|state|[Get TID] Number Input 1234567|||||0|0|0|0
    134418.568|dtmf||7||||55|13|0|0
    134418.839|state|[Get TID] Number Input 12345678|||||0|0|0|0
    134418.847|state|[Say Get TID] Say Numbers: 12345678 as Digits|||||0|0|0|0
    134418.856|dtmf||8||||56|13|0|0
    134418.891|command|cmd_PlayStart|||||343947|0|0|0
    134426.008|state|[Get Tel] Number Input|||||0|0|0|0
    134426.008|state|[Get Tel] Playing wav (AR Insert Telephone Number.wav)|||||0|0|0|0
    134426.009|command|cmd_PlayStop|||||0|0|0|0
    134426.009|command|cmd_PlayStart|||||351061|0|0|0
    134426.010|dtmf||1||||49|13|0|0
    134428.100|state|[Get Tel] Number Input 1|||||0|0|0|0
    134428.100|command|cmd_PlayStop|||||0|0|0|0
    134428.101|dtmf||1||||49|13|0|0
    134428.372|state|[Get Tel] Number Input 11|||||0|0|0|0
    134428.372|dtmf||1||||49|13|0|0
    134428.584|state|[Get Tel] Number Input 111|||||0|0|0|0
    134428.584|dtmf||1||||49|13|0|0
    134428.760|state|[Get Tel] Number Input 1111|||||0|0|0|0
    134428.760|dtmf||1||||49|13|0|0
    134428.941|state|[Get Tel] Number Input 11111|||||0|0|0|0
    134428.941|dtmf||1||||49|13|0|0
    134429.121|dtmf||1||||49|13|0|0
    134429.122|state|[Get Tel] Number Input 111111|||||0|0|0|0
    134429.302|state|[Get Tel] Number Input 1111111|||||0|0|0|0
    134429.302|dtmf||1||||49|13|0|0
    134429.483|state|[Get Tel] Number Input 11111111|||||0|0|0|0
    134429.483|dtmf||1||||49|13|0|0
    134430.025|state|[Say Get Tel] Say Numbers: 11111111 as Digits|||||0|0|0|0
    134430.031|command|cmd_PlayStart|||||355085|0|0|0
    134430.039|dtmf||#||||35|13|0|0
    134441.449|dtmf||1||||49|13|0|0
    134441.450|command|cmd_PlayStop|||||0|0|0|0
    134441.451|state|[Call Type] Playing wav (AR Paper Or Maintenance.wav)|||||0|0|0|0
    134441.452|command|cmd_PlayStart|||||366505|0|0|0
    134448.866|command|cmd_PlayStop|||||0|0|0|0
    134448.866|dtmf||1||||49|13|0|0
    134448.909|state|[REF_Num_D] RunScript vbs, onhold=|||||0|0|0|0
    134448.948|state|[Say Get TID] Say Numbers: 12345678 as Digits|||||0|0|0|0
    134448.955|command|cmd_PlayStart|||||374008|0|0|0
    134505.152|state|[Get Tel] Number Input|||||0|0|0|0
    134505.153|state|[Get Tel] Playing wav (AR Insert Telephone Number.wav)|||||0|0|0|0
    134505.154|command|cmd_PlayStop|||||0|0|0|0
    134505.154|command|cmd_PlayStart|||||390201|0|0|0
    134505.154|dtmf||1||||49|13|0|0
    134507.221|dtmf||1||||49|13|0|0
    134507.222|state|[Get Tel] Number Input 1|||||0|0|0|0
    134507.222|command|cmd_PlayStop|||||0|0|0|0
    134513.282|state|[Say Get Tel] Say Numbers: 1 as Digits|||||0|0|0|0
    134513.285|command|cmd_PlayStart|||||398345|0|0|0
    134519.933|state|[Call Type] Playing wav (AR Paper Or Maintenance.wav)|||||0|0|0|0
    134519.934|command|cmd_PlayStop|||||0|0|0|0
    134519.935|command|cmd_PlayStart|||||404990|0|0|0
    134519.935|dtmf||1||||49|13|0|0
    134521.765|command|cmd_PlayStop|||||0|0|0|0
    134521.765|dtmf||1||||49|13|0|0
    134521.765|state|[REF_Num_D] RunScript vbs, onhold=|||||0|0|0|0
    134521.774|state|[Say Get TID] Say Numbers: 12345678 as Digits|||||0|0|0|0
    134521.780|command|cmd_PlayStart|||||406831|0|0|0
    134524.159|callstate|GCEV_DISCONNECTED|||||0|16384|64|0
    134524.161|event|GCEV_DISCONNECTED|||||16384|0|64|0
    134524.192|event||LineEvCallState_DISCONNECTED||||0|0|0|0
    134524.192|command|cmd_DropCall|||||0|0|0|0
    134524.204|callstate|GCEV_DROPCALL|||||0|1|32|0
    134524.226|event|GCEV_DROPCALL|||||1|0|32|0
    134524.251|callstate|GCEV_RELEASECALL|GCST_NULL||||2137|0|0|0
  ",
  "length": "75.263"
}},


#9 ahmed.muneer 13 August 2017 - 09:54 PM

This is the problem the VBS code should run but when it fail it will as for the TID again as in the below

 

134441.451|state|[Call Type] Playing wav (AR Paper Or Maintenance.wav)|||||0|0|0|0
    134441.452|command|cmd_PlayStart|||||366505|0|0|0
    134448.866|command|cmd_PlayStop|||||0|0|0|0
    134448.866|dtmf||1||||49|13|0|0
    134448.909|state|[REF_Num_D] RunScript vbs, onhold=|||||0|0|0|0

134448.948|state|[Say Get TID] Say Numbers: 12345678 as Digits|||||0|0|0|0

    134448.955|command|cmd_PlayStart|||||374008|0|0|0
    134505.152|state|[Get Tel] Number Input|||||0|0|0|0
    134505.153|state|[Get Tel] Playing wav (AR Insert Telephone Number.wav)|||||0|0|0|0
    134505.154|command|cmd_PlayStop|||||0|0|0|0
    134505.154|command|cmd_PlayStart|||||390201|0|0|0
    134505.154|dtmf||1||||49|13|0|0
    134507.221|dtmf||1||||49|13|0|0
    134507.222|state|[Get Tel] Number Input 1|||||0|0|0|0
    134507.222|command|cmd_PlayStop|||||0|0|0|0
    134513.282|state|[Say Get Tel] Say Numbers: 1 as Digits|||||0|0|0|0
    134513.285|command|cmd_PlayStart|||||398345|0|0|0
    134519.933|state|[Call Type] Playing wav (AR Paper Or Maintenance.wav)|||||0|0|0|0
    134519.934|command|cmd_PlayStop|||||0|0|0|0
    134519.935|command|cmd_PlayStart|||||404990|0|0|0
    134519.935|dtmf||1||||49|13|0|0
    134521.765|command|cmd_PlayStop|||||0|0|0|0
    134521.765|dtmf||1||||49|13|0|0
    134521.765|state|[REF_Num_D] RunScript vbs, onhold=|||||0|0|0|0

 

    once it success it will generate a Reference number , kindly find the attached VGS to understand the Workflow.



#10 SupportTeam 14 August 2017 - 03:08 PM

In your VoiceGuide script (Geidea_ATR.vgs), in module "REF_Num_D" please change this line:

vg.Run_ResultReturn 1, "[TVar]{" & var & "}"

to:

vg.Run_ResultReturn $RV_LINEID, "[TVar]{" & var & "}"
 

 

Then:

In VG.INI in section: [moduleRunScript] please set entry "Engine" to WSH, like this:

[moduleRunScript]
Engine=WSH


and then restart the VoiceGuide service and place a test call again.

 

Please post vgEngine traces (.ZIPed) if you still encounter any problems.



#11 ahmed.muneer 14 August 2017 - 04:58 PM

Dear VG team,

 

Still am countering the same problem , kindly check the attached file.



#12 ahmed.muneer 14 August 2017 - 05:13 PM

Dears , 

 

in the line status monitor there is a message appears about External VBS before line hang up , kindly check the attached image.

  • usingExternalVbs.png


#13 SupportTeam 14 August 2017 - 07:18 PM

Looks like there is a bug in how the VBScript module is ran in the VoIP version of the current release.

 

Below can be used for now as a workaround:

 

Add a module that sets the engine to be used in script. This can be done by using an Evaluate Expressions module to set the Result Variable  $RV[ini_moduleRunScript_Engine] to a value of WSH

 

Please see attached screenshot.

 

Also attached is your script with that module added.

 

Please update your system with this change and try running again.

 

We should release a new version of software with this bug fixed soon.

  • EvalExpr_SetEngine_WSH.gif


#14 ahmed.muneer 14 August 2017 - 10:02 PM

Dear VG team,

 

Many thanks for your help it's working fine, and i appreciate to inform us once this bug is been fixed.



#15 SupportTeam 15 August 2017 - 05:42 PM

This issue has now been fixed in the version available for download from the main Downloads page (v7.5.12)

 

Please update to latest version. You will then be able to remove the workaround 'Set VBScript Engine' expression module from your script.

 

Please post traces as before if you still encounter any issues.

 

 

 

To change from one release of VoiceGuide v7 to another:

1. Stop VoiceGuide Service and exit all VoiceGuide programs. (eg Script Designer, Voicemail Manager, etc) and all other programs.

2. Run the VoiceGuide install and install into same directory as existing installation. (Do NOT uninstall the previous VoiceGuide installation).

3. Start  VoiceGuide service.

Running a VoiceGuide install over the top of an existing install will NOT overwrite existing configuration or license files (Config.xml, ConfigLine.xml, VG.INI, VmBoxList.xml, etc) and will not remove any of users script or sound files, and will not remove any log files etc.