invoso.com Report post Posted 08/17/2018 08:41 AM Hi, long time ago we start with parameter timeout on Music on waitline, but now i new VG version it doesen't work. VB script start play set vg = CreateObject("vgServices.CommandLink") vg.Play_Stop $RV_LINEID vg.Play_Start $RV_LINEID, "$RV[MusicOnWait]" vg.Run_ResultReturn $RV_LINEID, "success" set vg = Nothing paths: on {success} goto [MoW wait line periode] [MoW wait line periode] module is empty play module with path: on {timeout $RV[waiting_interval]} goto [STOP MoW wait line customizable] on {} goto [STOP MoW wait line customizable] and next: set vg = CreateObject("vgServices.CommandLink") vg.Play_Stop $RV_LINEID vg.Run_ResultReturn $RV_LINEID, "success" set vg = Nothing but VG playing whole $RV[MusicOnWait] file and next waiting $RV[waiting_interval] Previous version of VG start MusicOnWait following to play module, waiting until timeout expired and next stop play MusicOnWait file. Can You fix this? we need use MusicOnWait with not limited length and using timeout terminating waiting time. Share this post Link to post
SupportTeam Report post Posted 08/17/2018 10:10 AM Can you please post the vgEngine trace capturing the entire call. We can then see what happened on call and advise. If you are able to also post a trace from the older system we can then better compare what the differences are. Share this post Link to post
invoso.com Report post Posted 08/17/2018 10:57 AM We have no old vgEngine trace files, problem is we can't stop started play file before end. Share this post Link to post
SupportTeam Report post Posted 08/17/2018 01:41 PM Can you please post the vgEngine trace capturing the entire call on your current system. We can then see what happened on call and advise. Please .ZIP up the vgEngine trace before posting. Share this post Link to post
SupportTeam Report post Posted 08/17/2018 10:27 PM Can you describe in more detail what you are trying to achieve here. Do you just need to have the one sound file play while various other modules are ran? Can you post the actual script that you are using so that we can better see what the script is doing while music is playing? The "on hold' music sound file is the sound file that is played by some modules that conduct a longer operation eg: "Run VBScript", "Database Query", "Web Service", "Run Program", etc. The "On hold' music is not intended to be started the function call like: vg.Play_Start $RV_LINEID, "$RV[MusicOnWait]" Then the on hold music continues to play if the the $RV[DoNotStopMOH] was beforehand set to to value of "true" or "1". The $RV[DoNotStopMOH] must be set using an Evaluate Expression module, and when that $RV is set then the 'On Hold' music will not stop playing when the script moves onto another module. (set $RV[DoNotStopMOH] to value of "false" or "0" to disable. Evaluate Expression module must be used). Calling: vg.Play_Stop $RV_LINEID should stop the playing of any file that is currently playing, including an 'on hold' music file that continued to play while script progressed through a number of other modules. Share this post Link to post
SupportTeam Report post Posted 08/18/2018 02:58 AM We set up a test script with the 3 modules as you initially described: [Run VBS] -> [Play] -> [Run VBS] and the Play module only paused for the timeout specified in the timeout path. So the second 'Run VBS' module stopped the playing of the sound file after the timeout specified in the 'Play' module. See the attached script used and trace of the call showing the script working as you described you would expect it to work. Note that the Play module has the "Number of Replays" set to 0. This ensures that the timeout value from the timeout path is used straight away. If you still have problems please post the vgEngine trace capturing the entire call. We can then see what happened on the call on your system and advise. trace.txt test.vgs Share this post Link to post
invoso.com Report post Posted 08/19/2018 06:23 PM Hi I cut out modules used in our script and I don't see differences. vgEngine_MoW.txt manager_fa_kolejkowanie.vgs Share this post Link to post
SupportTeam Report post Posted 08/19/2018 08:55 PM The first "Run VBScript" module needs to be set to "Wait unil VBScript completes". Right now that module is set to "Do not wait". As a result this command: vg.Play_Start $RV_LINEID, "$RV[MusicOnWait]" gets to run only after the Play module ("MoW wait line periode") is started. The timeout values are reset when a new Play is attempted, so running this vg.Play_Start after the Play module will clear the timeouts set in the Play module. The Play module needs to be ran after the Run VBScript module fully completes, so that the timeouts set in the Play module remain active, and are not overwritten by the vg.Play_Start commands. Share this post Link to post
invoso.com Report post Posted 08/22/2018 09:06 AM Hi, now is working properly. Share this post Link to post