VoiceGuide IVR Software Main Page
Jump to content

Web Service - going to next module

Recommended Posts

Please check the VgEngine Trace.

I make a API call using Web Service i configure as "Wait until Web Service and Sound files completes" but after api call and sound play complete script not going to next path .Please let me know this

image.png

0131_0000_vgEngine.txt

Share this post


Link to post

Looks like there is a bug with processing the end of play in the 'Web Service' module. Your trace shows:
 

153915.683   8  13   4  178 state [VerifyNumber] Web Service |
153915.683   8  13   4  178       modWs SetTimeoutEventInVgm->-1
153915.683   8  13   4  178 t     timer set   30 sec : EV_TIMEOUT_HANGUP
153915.683   8  13   4  178       rv    replace start
------------------------------
http://172.16.10.222:8020/api/account?mobileNo=$RV[MobileNo]    

------------------------------
153915.683   8  13   4  178       rv    replace end   
------------------------------
http://172.16.10.222:8020/api/account?mobileNo=0504806187    

------------------------------
153915.683   8  13   4  178       que modWs.RunModule_WebService, modCurrentModuleWs.hash=23951738, zModTaskParams.hash=1438926009
153915.683  38  13   4  178       ws    RunModule_WebService start iModuleIdx=40, iRunWait=2
153915.683  38  13   4  178       ws    sLogFromConstructor: taskParams_in.hash=1438926009, taskParams.hash=1438926009
153915.684  38  13   4  178       ws    RunModule_WebService start taskParams.hash=1438926009
153915.684  38  13   4  178       ws    PlayOnHoldFile
153915.684  38  13   4  178       moh supplied: [C:\zoheb\MurshidIVRAudioFiles\$RV[Welcome]\VerifyMobileWaitingMessage.wav]
153915.684  38  13   4  178       moh default start : [C:\zoheb\MurshidIVRAudioFiles\$RV[Welcome]\VerifyMobileWaitingMessage.wav]
153915.684  38  13   4  178       rv    replace start [C:\zoheb\MurshidIVRAudioFiles\$RV[Welcome]\VerifyMobileWaitingMessage.wav]
153915.684  38  13   4  178       rv    replace end   [C:\zoheb\MurshidIVRAudioFiles\2\VerifyMobileWaitingMessage.wav]
153915.684  38  13   4  178       FindSoundFile start [C:\zoheb\MurshidIVRAudioFiles\2\VerifyMobileWaitingMessage.wav]
153915.684  38  13   4  178       timer not cleared before play as ModuleType=Web Service
153915.684  38  13   4  178       q_tel +     cmd_PlayStart 846580 C:\zoheb\MurshidIVRAudioFiles\2\VerifyMobileWaitingMessage.wav []
153915.685   9  13   4  178       q_tel run   cmd_PlayStart 0 846580 [] 0 max:4|6
153915.685  38  13   4  178       play  start ok, playId=846580
153915.685  38  13   4  178       moh playmohfile return
153915.685  38  13   4  178       ws    WebRequest.Create [http://172.16.10.222:8020/api/account?mobileNo=0504806187    
] call
153915.686  38  13   4  178       ws    request.Method=[GET]
...
153915.686  38  13   4  178       ws    request.ReadWriteTimeout=30000, taskParams.iWsTimeoutMs_GoToAnotherModule=-1
153915.686  38  13   4  178       ws    taskParams.clsRequestState.hash=9896005
153915.686  38  13   4  178       ws    BeginGetResponse (GetWsResponse_Callback) call. ReadWriteTimeout=30000
153915.687  38  13   4  178       ws    BeginGetResponse returned
153916.358  36  13   4  178       ws    GetWsResponse_Callback start. class' taskParams.hash=1438926009 clsRequestStateData.taskParams.hash=1438926009
153916.359  36  13   4  178       ws    GetWsResponse_Callback request.hash=10097495
153916.359  36  13   4  178       ws    GetWsResponse_Callback start [VerifyNumber], time since WsUserWorkItemCreated=00:00:00.6756172
...
153916.363  36  13   4  178       rvns  add   VerifyNumber_Result_Code|OK
153916.363  36  13   4  178       rvns  add   VerifyNumber_Result_Desc|OK
153916.363  36  13   4  178       ws    GetWsResponse_Callback iRunWait=2, WavPlayWasStarted=1, WavPlayHasNowFinished=0
153916.363  36  13   4  178       ws    modCurrentModuleWs.hash=23951738 this.hash=23951738
153916.363  36  13   4  178       ws    modCurrentModuleWs == this. set modCurrentModuleWs=null and free reference
153916.363  36  13   4  178       ws    wait till WAV finishes playing
153919.144  16  13   4  178 ev    PlayEnd 13 846580 [bytes_played=0:0, bytes_in_file=26657]
153919.144  16  13   4  178       play  end   id=846580 (current id)
153919.144  16  13   4  178       rvns  add   VerifyNumber_SoundFileLength|3332
153919.144  16  13   4  178       q_scr +     evScriptEvent 8001 EV_PLAY_FINISHED
153919.144   8  13   4  178       q_scr run   evScriptEvent 8001 EV_PLAY_FINISHED action_id=0, crn=0 [846580|0|0|0|0][|||||] 00:00:00 max:4|00:00:00.0115009
153919.144   8  13   4  178       evscr EV_PLAY_FINISHED 8001  846580|0|0  || LineState=LS_WS_CALL
153919.144   8  13   4  178       play  end   id=846580, current id=0 - passing event up (in secai)
153919.144   8  13   4  178       LsWsCall EV_PLAY_FINISHED lCode2Str=EV_PLAY_FINISHED
153919.144   8  13   4  178 NOTE  LsWsCall event ignored as modCurrentModuleWs==null
153943.804  16  13   4  178 ev    CallState GCEV_DISCONNECTED, crn=8000004, iEvent=0 ,16384,0,64, s1:, s2:, s3:, build_date: 2018-12-12 20:31:29.55

 

Share this post


Link to post

This bug has now been fixed and this fix will be included in v7.6.5 onward.

For now, you should receive an email with a Download link to patched version which will let you update your system to working version right away.

Trace from patched version:

121527.748  23   5   1    1       rvns  add   ws1_Result_Code|OK
121527.748  23   5   1    1       rvns  add   ws1_Result_Desc|OK
121527.749  23   5   1    1       ws    GetWsResponse_Callback iRunWait=2, WavPlayWasStarted=1, WavPlayHasNowFinished=0
121527.749  23   5   1    1       ws    modCurrentModuleWs.hash=55634702 this.hash=55634702
121527.749  23   5   1    1       ws    wait till WAV finishes playing
121532.373  19   5   1    1 ev    PlayEnd 5 486677 [bytes_played=0:0, bytes_in_file=41422]
121532.373  19   5   1    1       play  end   id=486677 (current id)
121532.373  19   5   1    1       rvns  add   ws1_LastPos|0
121532.373  19   5   1    1       rvns  add   ws1_PosMax|0
121532.373  19   5   1    1       rvns  add   ws1_SoundFileLength|5177
121532.373  19   5   1    1       q_scr +     evScriptEvent 8001 EV_PLAY_FINISHED
121532.373  11   5   1    1       q_scr run   evScriptEvent 8001 EV_PLAY_FINISHED action_id=0, crn=0 [486677|0|0|0|0][|||||] 00:00:00 max:21|24.0633
121532.373  11   5   1    1       evscr EV_PLAY_FINISHED 8001  486677|0|0  || LineState=LS_WS_CALL
121532.374  11   5   1    1       play  end   id=486677, current id=0 - passing event up (in secai)
121532.374  11   5   1    1       LsWsCall EV_PLAY_FINISHED lCode2Str=EV_PLAY_FINISHED
121532.379  11   5   1    1       ws    ScriptEvent EV_PLAY_FINISHED,EV_PLAY_FINISHED 486677,0,0 ||
121532.380  11   5   1    1       ws    ScriptEvent taskParams.hash=-84638629
121532.380  11   5   1    1       ws    EV_PLAY_FINISHED (id matches) iRunWait=2, WavPlayWasStarted=1, WavPlayHasNowFinished=1, bWsResponseReceived=True
121532.382  11   5   1    1       ModuleCompleted_WebServiceCall [200] : [OK]
121532.382  11   5   1    1       path {200} not found
121532.382  11   5   1    1       path {OK} not found
121532.382  11   5   1    1       ModuleCompleted_WebServiceCall DataReturned.Length > 50, not checking for path
121532.382  11   5   1    1       path {OK} not found
121532.383  11   5   1    1       find_next_vgm module title is=[Play End] (trigger_used={SUCCESS})
121532.384  11   5   1    1       RunModule_AddToTaskQueue [Play,[Play End],14]
121532.384  11   5   1    1       q_scr +     evScriptEvent 9800 CMD_RUN_SAME_MODULE_AGAIN
121532.384  11   5   1    1       q_scr run   evScriptEvent 9800 CMD_RUN_SAME_MODULE_AGAIN action_id=0, crn=0 [0|0|0|0|0][|||||] 00:00:00 max:21|24.0633
121532.384  11   5   1    1       evscr CMD_RUN_SAME_MODULE_AGAIN 9800  0|0|0  || LineState=LS_WS_CALL
121532.384  11   5   1    1 t     timer clear (force=False)
121532.384  11   5   1    1       RunModule start Play, [Play End], iModuleIdx=14, previous: vgm=14, vgs=2:2
121532.384  11   5   1    1       [Play End] VGMTYPE_PLAY run start
121532.384  11   5   1    1       rvns  add   Play End_LastPos|0
121532.384  11   5   1    1       rvns  add   Play End_ReplayCount|0
121532.384  11   5   1    1       PrepareAndPlayWavAndTts start iModuleIdx=14, iPlayFileIdx=1, bMakeTtsFile=True, sSoundFileIs=
121532.384  11   5   1    1       PrepareAndPlayWavAndTTS sPlayFile=9.wav
121532.385  11   5   1    1 state [Play End] Playing wav (9.wav) | 

 

 

Share this post


Link to post

Yes, v7.5 can be updated with this patch as well. We will forward download link when available.

Share this post


Link to post

I would like to know after updating Version i have to make any changes in API call or I want test with current API call Please let me know?

Share this post


Link to post

No changes to API calls are required.

You can quickly change between the  different versions of VoiceGuide v7 by just running installer. See below for changing from one version to another:

1. Stop VoiceGuide Service and exit all VoiceGuide programs. (eg Script Designer, Line Status Monitor, 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, etc) and will not remove any of users script or sound files, and will not remove any log files etc.

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
×