Jump to content


< Back to Forum


 

Wrong Handle Of "vg.run_Resultreturn" ?


  • Please log in to reply

#1 sgille 20 December 2016 - 03:12 AM

Hi,


we use VoiceGuide version 7.5.7 on Windows 2012 with Dialogic HMP Software driver
It works well.
But there is something that i don't understand. Below i posted a sample script, it is a sample extract from a more dfficult script, but it describes the problem.

The Script does not end in the failed path, it always plays xxx.wav
I'm not sure what goes wrong?

Regards,

Sebastian


Version=5.0
DefaultModuleDisplayHeight=
StartModule=Erfolg
RunAtHangup=
StartWithoutAnswer=0
CtmAsiName=

[test]
Type=Run VB Script
DispSize=69
Txt=Run a VB Script.
VbsFileToRun=
VbsWait=1
VbScript=
MSB = "fail"

if 1 = 2 then
MSB = "success"
else
MSB = "fail"
end if


set vg = CreateObject("VoiceGuide.CommandLink")
vg.Run_ResultReturn $RV_LINEID, MSB
set vg = Nothing

VbsHoldPlay=
on {fail} goto [Fehler]
on {success} goto [Erfolg]
on {timeout 0} goto [TimeOut]

Position=118,160

[Erfolg]
Type=Play
DispSize=69
Txt=Play a sound file, then await a response...
PlayFile1=xxx.wav
Replay=2,5
strTtsText=
on {timeout 0} goto [auflegen]

Position=206,299

[Fehler]
Type=Play
DispSize=69
Txt=Play a sound file, then await a response...
PlayFile1=xx.wav
Replay=2,5
strTtsText=
on {timeout 0} goto [auflegen]

Position=465,297

[TimeOut]
Type=Play
DispSize=69
Txt=Play a sound file, then await a response...
PlayFile1=x.wav
Replay=2,5
strTtsText=
on {timeout 0} goto [auflegen]

Position=676,295

[auflegen]
Type=Hangup the Call
DispSize=69
Txt=Hangup the call.

Position=518,526

#2 SupportTeam 20 December 2016 - 05:16 AM

Could you please post the vgEngine trace for your system that captures the system startup and the call running the scirpt.

 

We can then see what is happening on our system and why it is behaving the way it is behaving.



#3 sgille 21 December 2016 - 01:53 AM

Do i need the enterprise version of Voiceguide to use "vg.run_Resultreturn" ?



#4 SupportTeam 21 December 2016 - 07:22 AM

Yes. COM and WCF interfaces are only supported in Enterprise license version (and Evaluation).

 

Please see: http://www.voiceguid...em-features.htm