invoso.com Report post Posted 09/19/2018 12:34 PM HI, we need to identify side and hangup source. In case below we see: 122303.595 9 145 47 20829 rv add Hangup_Source|LineEvCallState_DISCONNECTED this identify disconnection side and reason but VG shows for channel 1 (client and running script) 122303.596 9 5 1 20819 rv add Hangup_Source|Hangup Module Where can we find data about hangup source and side? 122303.594 15 145 47 20829 ev CallState GCEV_DISCONNECTED, crn=6040091, iEvent=0 ,16384,0,64, s1:, s2:, s3:, build_date: 2018-06-14 20:45:44.72 122303.594 15 145 47 20829 q_scr + evCallState 0 GCEV_DISCONNECTED 122303.594 9 145 47 20829 q_scr run evCallState sCode=[GCEV_DISCONNECTED] iActionID=0, crn=6040091 [16384|0|64|0|0][|||||] 00:00:00 max:5|00:00:00.0100006 122303.594 9 145 47 20829 callstate crn_event=6040091 0|GCEV_DISCONNECTED state=16384|Disconnected calldirection=0 gcCallState=64 [||], ScriptState=LS_XFER_9_WaitEndCall_OutLeg 122303.594 9 145 47 20829 LineEvCallState L1_current=Connected crn_event=6040091,ev=0,GCEV_DISCONNECTED,0, sParam1= 122303.594 9 145 47 20829 LineEvCallState DISCONNECTED begin 122303.594 9 145 47 20829 TsReset [LineEvCallState_LINECALLSTATE_DISCONNECTED], OtherLegLid=5 122303.594 9 145 47 20829 q_scr + evScriptEvent 0 CONFERENCE_END 122303.594 9 5 1 20819 q_scr + evScriptEvent 0 CONFERENCE_END 122303.594 9 145 47 20829 q_tel + cmd_TsReset 0 [MATCH_] [0,0,0,0,0,0,0,0][dtiB2T17||dtiB1T1|||||] 122303.594 9 145 47 20829 OtherLegLid_ClearBoth 145 5 as iLineIdOther_iConferenceOtherLegLid=145 caller:LineEvCallState_LINECALLSTATE_DISCONNECTED 122303.594 9 5 1 20819 OtherLegLid_ClearBoth 145 5 122303.594 10 145 47 20829 q_tel run cmd_TsReset 0 0 [MATCH_] 0 max:4|332 122303.594 9 145 47 20829 send OTHER_LEG_DISCONNECTED to OtherLegLid=5 122303.594 9 5 1 20819 q_scr + evScriptEvent 0 OTHER_LEG_DISCONNECTED 122303.594 9 145 47 20829 LINECALLSTATE_DISCONNECTED: clear crn_connected, set crn_InProcessOfReleasing, set L1=Disconnected 122303.594 9 145 47 20829 L1_set Disconnected (iState=LS_XFER_9_WaitEndCall_OutLeg) 122303.594 9 145 47 20829 in LINECALLSTATE_DISCONNECTED iState=LS_XFER_9_WaitEndCall_OutLeg 122303.594 9 145 47 20829 HangupCall qScr add (LineEvCallState_DISCONNECTED) crn_in=6040091, L1=Disconnected, L2=Running_Normal, lPlayId=0, lRecId=0 122303.594 9 145 47 20829 q_scr + cmdHangupCall 0 122303.594 9 145 47 20829 q_scr run evScriptEvent sCode=[CONFERENCE_END] iActionID=0, crn=0 [0|0|0|0|0][|||||] 00:00:00 max:5|00:00:00.0100006 122303.594 9 145 47 20829 se CONFERENCE_END 0 0|0|0 || LineState=LS_XFER_9_WaitEndCall_OutLeg 122303.594 9 145 47 20829 LsXfer_9_WaitEndCall_OutLeg : [0:CONFERENCE_END] 0,0,0 ,, 122303.595 9 145 47 20829 xfer_9_leg2 pass event to leg1 : [CONFERENCE_END] 122303.595 9 q_scr + evScriptEvent 0 OTHER_LEG_CONFERENCE_END 122303.595 9 5 1 20819 q_scr run evScriptEvent sCode=[CONFERENCE_END] iActionID=0, crn=0 [0|0|0|0|0][|||||] 00:00:00.0010001 max:5|00:00:00.0100006 122303.595 9 5 1 20819 se CONFERENCE_END 0 0|0|0 || LineState=LS_GETNBRS_RXDIGITS 122303.595 9 5 1 20819 LsGetNbrsRxDigits lCode=0 lCode2Str=EV_UNKNOWN_0 sCode=CONFERENCE_END 122303.595 9 5 1 20819 path {CONFERENCE_END} found (at offset 278) 122303.595 9 5 1 20819 FindNextVgmTitleInPathList: next module title is=[Hangup the Call] 122303.595 9 5 1 20819 rv add PBXprocessingRecordedCall|CONFERENCE_END 122303.595 9 5 1 20819 t timer clear (force=False) 122303.595 9 5 1 20819 RunModule start Hangup the Call, [Hangup the Call], iModuleIdx=383, previous: vgm=527, vgs=6:6 122303.595 9 5 1 20819 HangupCall qScr add (Hangup Module) crn_in=0, L1=Connected, L2=Running_Normal, lPlayId=0, lRecId=848115 122303.595 9 5 1 20819 q_scr + cmdHangupCall 0 122303.595 9 5 1 20819 RunModule finish 122303.595 9 5 1 20819 q_scr run evScriptEvent sCode=[OTHER_LEG_DISCONNECTED] iActionID=0, crn=0 [0|0|0|0|0][|||||] 00:00:00.0010001 max:5|00:00:00.0100006 122303.595 9 5 1 20819 se OTHER_LEG_DISCONNECTED 0 0|0|0 || LineState=LS_MODULE_TRANSITION 122303.595 9 145 47 20829 q_scr run cmdHangupCall sCode=[] iActionID=0, crn=6040091 [0|0|0|0|0][LineEvCallState_DISCONNECTED|||||] 00:00:00.0010001 max:5|00:00:00.0100006 122303.595 9 145 47 20829 HangupCall qScr exec src=LineEvCallState_DISCONNECTED, opt=, crn_in=6040091, L1=Disconnected, L2=Running_Normal, lPlayId=0, lRecId=0 122303.595 9 145 47 20829 HangupCall crn_connected=0, crn_NewCallArriving=0, crn_CurrentMakeCall=0, crn_InProcessOfReleasing=6040091 122303.595 9 145 47 20829 rv add Hangup_Source|LineEvCallState_DISCONNECTED 122303.595 9 145 47 20829 HangupCall sScriptToRunOnHangup=[] 122303.595 9 145 47 20829 no script running on this line. AfterHangup script will not be ran. 122303.595 9 145 47 20829 rv add DropCall_Source| 122303.595 9 145 47 20829 state Hanging up... [LineEvCallState_DISCONNECTED] 122303.595 9 145 47 20829 logs not written as LogEntryWritten=1 122303.595 9 145 47 20829 L2_set Idle_WaitingForNextCall (HangupCall) 122303.595 9 145 47 20829 GoOnHoook_IssueDropCall start (crn_in=6040091, crn_connected=0, crn_makecall=0, crn_NewCallArriving=0, crn_InProcessOfReleasing=6040091, L1=Disconnected) 122303.595 9 145 47 20829 t timer set 20 sec : EV_TIMEOUT_WAITFORIDLEAFTERDropCall 122303.595 9 145 47 20829 GoOnHoook_IssueDropCall: set crn_InProcessOfReleasing=6040091 122303.595 9 145 47 20829 not clearing crn_connected to 0 as crn_CurrentConnected=0 and evnt crn=6040091 122303.595 9 145 47 20829 set crn_connected=0 visual_ivr_session_id=0 (called from GoOnHoook_IssueDropCall) 122303.596 9 145 47 20829 q_tel + cmd_DropCall 6040091 [] [0,0,0,0,0,0,0,0][|||||||] 122303.596 9 145 47 20829 GoOnHoook_IssueDropCall end 122303.596 9 q_scr run evScriptEvent sCode=[OTHER_LEG_CONFERENCE_END] iActionID=0, crn=0 [0|0|0|0|0][|||||] 00:00:00.0010001 max:5|00:00:00.0100006 122303.596 9 se OTHER_LEG_CONFERENCE_END, code=0 - ignored as iLineId=-1 122303.596 9 5 1 20819 q_scr run cmdHangupCall sCode=[] iActionID=0, crn=0 [0|0|0|0|0][Hangup Module|||||] 00:00:00.0010001 max:5|00:00:00.0100006 122303.596 10 145 47 20829 q_tel run cmd_DropCall 6040091 0 [] 0 max:4|332 122303.596 9 5 1 20819 HangupCall qScr exec src=Hangup Module, opt=, crn_in=0, L1=Connected, L2=Running_Normal, lPlayId=0, lRecId=848115 122303.596 9 5 1 20819 HangupCall crn_connected=60f0005, crn_NewCallArriving=0, crn_CurrentMakeCall=0, crn_InProcessOfReleasing=0 122303.596 9 5 1 20819 RecSoundStop begin trunc100ms=0, sCaller=Line_Hangup_Main, lRecId=848115 122303.596 9 5 1 20819 RecSoundStop lRec_Id_InProcessOfStopping=848115, lRecId=0 122303.596 9 5 1 20819 q_tel + cmd_RecordStop [0,0,0,0,0][||||] 122303.596 9 5 1 20819 rv add Hangup_Source|Hangup Module 122303.596 10 5 1 20819 q_tel run cmd_RecordStop 0 2 [] 0 max:4|332 122303.596 9 5 1 20819 HangupCall sScriptToRunOnHangup=[C:\Program Files (x86)\VoiceGuide\Scripts\manager\manager_termination.vgs] 122303.596 9 5 1 20819 HangupCall lRec_Id_InProcessOfStopping=848115, wait till recording cmpletes 122303.596 9 5 1 20819 t timer set 4 sec : EV_TIMEOUT_RunAfterHangupScript Share this post Link to post
SupportTeam Report post Posted 09/19/2018 10:38 PM Remote end of call 20829 hung up: 122303.594 15 145 47 20829 ev CallState GCEV_DISCONNECTED, crn=6040091, iEvent=0 ,16384,0,64, s1:, s2:, s3:, build_date: 2018-06-14 20:45:44.72 and this is reflected in the $RV[Hangup_Source] created on that call: 122303.595 9 145 47 20829 rv add Hangup_Source|LineEvCallState_DISCONNECTED Call 20819 was sent CONFERENCE_END and OTHER_LEG_DISCONNECTED events: 122303.594 9 5 1 20819 q_scr + evScriptEvent 0 CONFERENCE_END 122303.594 9 5 1 20819 q_scr + evScriptEvent 0 OTHER_LEG_DISCONNECTED Call 20819 was in module [PBXprocessingRecordedCall] and that module has a {CONFERENCE_END} path defined in it. That path was taken and a $RV was set to reflect this path was taken: 122303.595 9 5 1 20819 path {CONFERENCE_END} found (at offset 278) 122303.595 9 5 1 20819 FindNextVgmTitleInPathList: next module title is=[Hangup the Call] 122303.595 9 5 1 20819 rv add PBXprocessingRecordedCall|CONFERENCE_END That {CONFERENCE_END} path pointed to a module named [Hangup the Call], which was a "Hangup Call" type module. That "Hangup Call" module was ran: 122303.595 9 5 1 20819 RunModule start Hangup the Call, [Hangup the Call], iModuleIdx=383, previous: vgm=527, vgs=6:6 122303.595 9 5 1 20819 HangupCall qScr add (Hangup Module) crn_in=0, L1=Connected, L2=Running_Normal, lPlayId=0, lRecId=848115 122303.595 9 5 1 20819 q_scr + cmdHangupCall 0 and the $RV[Hangup_Source] created on call 20819 reflected that a call was hung up as script reached a Hangup type module: 122303.596 9 5 1 20819 rv add Hangup_Source|Hangup Module Sounds like having the $RV[Hangup_Source] with value of "LineEvCallState_DISCONNECTED" is not sufficient and you need further $RVs to let you determine how call hung up. What other $RVs would you like to see created? Maybe an $RV that holds the name of the last module the script was in when the hangup occurred? or something else? Share this post Link to post
SupportTeam Report post Posted 09/19/2018 11:55 PM VoiceGuide v7.6 will have this $RV available for use: $RV_CurrentModule Title of the current module the script is in. This $RV_CurrentModule will continue to hold the name of the last module that the script was in when the disconnect occurred, so it can be used from "After Hangup" etc scripts. This new $RV_CurrentModule will complement the existing $RV_PreviousModule that is in VoiceGuide already: $RV_PreviousModule Title of the previous module, ie: from which module the script arrived at the current module. Share this post Link to post