invoso.com Report post Posted 11/14/2011 02:42 PM How to set music on hold durring querying database and make other tasks in background? MoH should not be interrupted between declared start and stop elements include transfer module. I need play MoH starting querying database and transfering call. Share this post Link to post
SupportTeam Report post Posted 11/16/2011 10:05 PM Please see attached script. It starts the sound play that continues right through the database query and only stops playing when caller is connected to the transfer call recipient. PlayDuringDbQueryAndTransfer.vgs Share this post Link to post
invoso.com Report post Posted 12/13/2011 05:44 PM Sorry, but it doesn't work. after start playing MOH in next step (next script element) stopping playing MOH 183837.845 6 2 1 FindNextVgmTitleInPathList: next module title is=[play MOH] 183837.845 6 2 1 t timer clear (force=False) 183837.845 6 2 1 RunModule start Run VB Script, [play MOH], iModuleIdx=533, previous: vgm=491, vgs=11:11 183837.845 6 2 1 state [play MOH] type: Script_VBScript, iRunWait=1 183837.845 6 2 1 rv replace start ------------------------------ set vg = CreateObject("vgServices.CommandLink") vg.Play_Start $RV_LINEID, "ring_multiple.wav" set vg = Nothing ------------------------------ 183837.845 6 2 1 rv replace end [set vg = CreateObject("vgServices.CommandLink") vg.Play_Start 2, "C:\Program Files\VoiceGuide723\Scripts\manager\komunikaty\ring_multiple.wav" set vg = Nothing] 183837.845 6 2 1 script will be ran from file: C:\Program Files\VoiceGuide723\temp\vbs_2_1.vbs 183837.845 6 2 1 delete existing: C:\Program Files\VoiceGuide723\temp\vbs_2_1.vbs 183837.845 6 2 1 current objVbsOrExeProcess= 183837.845 6 2 1 RunVBScriptFile [wscript][C:\Program Files\VoiceGuide723\temp\vbs_2_1.vbs][] timeout=60 (vbsPath=C:\Program Files\VoiceGuide723\temp), start (new Process) 183837.845 6 2 1 objVbsOrExeProcess.Start call 183837.845 6 2 1 RunVBScriptFile just started. Handle=36012, Id=5756, StartTime=2011-12-13 18:38:37, HasExited=False 183837.845 6 2 1 VBScript started [vbs_2_1.vbs], ProcessHandle=[36012], VbsOrExeProcess.WorkingSet=[77824] 183837.845 6 2 1 RunModule_Script_AfterScriptStarted start 183837.845 6 2 1 waiting. iRunWait=1 (process:36012) 183837.845 6 2 1 t timer set 1 sec : EV_TIMEOUT_CHECKONSTATE 183837.845 13 2 1 db odbc query completed. 183838.017 10 rem vgRemotingCommandLink constructor start, parmameterless 183838.017 10 remoting link constructor activated: vgServices_CommandLink 183838.033 10 2 1 rem Play_Start ring_multiple.wav 183838.033 10 2 1 CallExistsOnLine TRUE crn=28003f9 183838.033 10 2 1 qScr add cmdPlayWavTts 0 183838.033 6 2 1 qScr run cmdPlayWavTts sCode=[] iActionID=0, crn=0[533|0|0|0|0][ring_multiple.wav|||||] 183838.033 6 2 1 PrepareAndPlayWavAndTts start iModuleIdx=533, iPlayFileIdx=0, bMakeTtsFile=True, sSoundFileIs=ring_multiple.wav 183838.033 6 2 1 PrepareAndPlayWavAndTTS sPlayFile=ring_multiple.wav 183838.033 6 2 1 state [play MOH] Playing wav (ring_multiple.wav) 183838.033 6 2 1 timer not cleared before play as we are in VBScript module. 183838.033 6 2 1 qTel add cmd_PlayStart [0,0,0,0,0][||||] 183838.033 7 2 1 qTel run cmd_PlayStart 183838.080 6 2 1 play start ok, playId=469453 183838.736 13 2 1 timer EV_TIMEOUT_CHECKONSTATE 183838.736 13 2 1 qScr add evScriptEvent 9007 EV_TIMEOUT_CHECKONSTATE 183838.736 6 2 1 qScr run evScriptEvent sCode=[EV_TIMEOUT_CHECKONSTATE] iActionID=0, crn=0[0|0|0|0|0][|||||] 183838.736 6 2 1 scriptevent EV_TIMEOUT_CHECKONSTATE 0|0|0 || 183838.736 6 2 1 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE lCode2Str=EV_TIMEOUT_CHECKONSTATE 183838.736 6 2 1 Process.HasExited is true (System.Diagnostics.Process (wscript)) 183838.736 6 2 1 task completed. vgm=533, iRunWait=1, iRunWait_ExeResult_NextVgm=0=[] 183838.736 6 2 1 ExeResult_NextVgm has not been set. check for Result file. 183838.736 6 2 1 no result file returned from program (VGRUNRESULT_2.TXT). 183838.736 6 2 1 FindNextVgmTitleInPathList: next module title is=[placowka] 183838.736 6 2 1 qTel add cmd_PlayStop [0,0,0,0,0][||||] 183838.736 6 2 1 play PlaySoundStop ok 183838.736 7 2 1 qTel run cmd_PlayStop Share this post Link to post
SupportTeam Report post Posted 12/14/2011 11:13 PM Please set the VBScript module to "Do not wait for VBScript to complete" - like it is set in the sample provided. Right now in the script script that is ran on your system the modules wait option is set to "wait for VBScript to complete". What does module [placowka] do? Are you able to post the script that you are using? Share this post Link to post
invoso.com Report post Posted 12/15/2011 07:33 AM VBScript: play begin including: set vg = CreateObject("vgServices.CommandLink") vg.Play_Start $RV_LINEID, "C:\Program Files\VoiceGuide\System\voice\VmSendMainMenu.wav" set vg = Nothing What should I to change? placowka module is Database Query. after finishing VBS MoH is stopping. Share this post Link to post
SupportTeam Report post Posted 12/15/2011 10:07 AM When you open a "Run VBScript" type module in the Script Designer you will see a properties window similar to this: at the bottom of the window there is a drop down combo box. Select the "Do not wait for VBScript to complete" option in that combo box. Please post traces of the script execution once the script has been modified. Share this post Link to post
invoso.com Report post Posted 12/15/2011 01:14 PM I solved This problem so: before VBS module I set var DoNotStopMOH=1 in Evaluate Expression module in VBS module I set MoH in Play so it works now! Share this post Link to post
SupportTeam Report post Posted 12/15/2011 09:58 PM Have you set the "Do not wait for VBScript to complete" option in that combo box as well? Otherwise you would see unnecessary delay in the VBScript module while the system waits for any delayed result responses from that module's script. Share this post Link to post