VoiceGuide IVR Software Main Page
Jump to content

Outdial_result Help

Recommended Posts

Using vbscript module called [AMDetect] to route to different paths. Detected_human is detected, but script always fails. Please help

 

 

154501.79 0 ERROR 6.0.2092 dial DbFindDueCall [invalid use of Null]

154501.79 0 ERROR 6.0.2092 dial DbFindDueCall [invalid use of Null]

154501.80 1 dial [63,13044883179,0,0,2359,,[],3,,C:\Program Files\VoiceGuide\Scripts\MedGen.vgs,,[FName]{virgil}[Physician]{Doctor Smith's office}[ApptDate]{10/7/2005}[ApptTime]{3:44 PM},60,2,5,,] (search started at 154501.79)

154501.80 1 dial DialOnLine start tel[13044883179] ann[] vgs[C:\Program Files\VoiceGuide\Scripts\MedGen.vgs] am[] rv[[FName]{virgil}[Physician]{Doctor Smith's office}[ApptDate]{10/7/2005}[ApptTime]{3:44 PM}]

154501.80 0 dial callque update id=63: NextCallTime=0510061550, RetriesLeft=1

154501.80 0 dial callque DB update returned (MSAccess)

154501.80 1 rv clear all

154501.81 1 rv add [FName]{virgil}

154501.81 1 rv add [Physician]{Doctor Smith's office}

154501.81 1 rv add [ApptDate]{10/7/2005}

154501.81 1 rv add [ApptTime]{3:44 PM}

154501.81 1 rv add [OutDial_RetriesLeft]{2}

154501.81 1 dial making call tel[13044883179] ann[] vgs[C:\Program Files\VoiceGuide\Scripts\MedGen.vgs] am[] OnHangup[] rv[[FName]{virgil}[Physician]{Doctor Smith's office}[ApptDate]{10/7/2005}[ApptTime]{3:44 PM}[OutDial_RetriesLeft]{2}]

154501.81 1 script interpretor: VgMulti v6.0.2092

154501.82 1 state Dialing 13044883179

154501.84 1 timer set 60 EV_TIMEOUT_MAKECALL_NORESPONSE

154502.38 1 tw DialogicEvent 135,TDX_SETHOOK,0,0,0,DX_OFFHOOK,CALL_OUTBOUND,

154502.38 1 event TDX_SETHOOK, code=135, state=5200

154502.38 1 LsWaitAfterDialingOut : 135,TDX_SETHOOK,0,0,0,DX_OFFHOOK,CALL_OUTBOUND,

154515.89 1 tw DialogicEvent 134,TDX_CST,200,0,0,DE_TONEON,TID_RNGBK2,

154515.89 1 event RINGBACK, code=134, state=5200

154515.90 1 LsWaitAfterDialingOut : 134,RINGBACK,200,0,0,DE_TONEON,TID_RNGBK2,

154515.91 1 event TID_RNGBK2, code=134, state=5200

154515.91 1 LsWaitAfterDialingOut : 134,TID_RNGBK2,200,0,0,DE_TONEON,TID_RNGBK2,

154515.92 1 event TDX_CST, code=134, state=5200

154515.92 1 LsWaitAfterDialingOut : 134,TDX_CST,200,0,0,DE_TONEON,TID_RNGBK2,

154519.06 1 tw DialogicEvent 133,TDX_CALLP,10,3,0,TDX_CALLP,CR_CNCT,CON_PVD

154519.07 1 event VOICE, code=133, state=5200

154519.07 1 LsWaitAfterDialingOut : 133,VOICE,10,3,0,CR_CNCT,CON_PVD,

154519.09 1 event CONNECT, code=133, state=5200

154519.09 1 LsWaitAfterDialingOut : 133,CONNECT,10,3,0,CR_CNCT,CON_PVD,

154519.09 1 event CON_PVD, code=133, state=5200

154519.09 1 LsWaitAfterDialingOut : 133,CON_PVD,10,3,0,CR_CNCT,CON_PVD,

154519.11 1 event CR_CNCT, code=133, state=5200

154519.11 1 LsWaitAfterDialingOut : 133,CR_CNCT,10,3,0,CON_PVD,,

154519.11 1 event TDX_CALLP, code=133, state=5200

154519.13 1 LsWaitAfterDialingOut : 133,TDX_CALLP,10,3,0,CR_CNCT,CON_PVD,

154519.13 1 LineEvCallState_OutgoingCallWasAnswered 10,3,0

154519.13 1 init OnCallAnswered_StartScript start

154519.13 1 init StartLoadedVgs_InitLineState start

154519.14 1 rv add [$RV_STARTTIME]{10/6/2005 3:45:19 PM}

154519.14 1 rv add [$RV_DEVICEID]{1}

154519.15 1 rv add [$RV_CIDNAME]{}

154519.16 1 rvns add [PathApp]{C:\Program Files\VoiceGuide\}

154519.18 1 WARN rv ScriptsPath could not be set as LineState(iLineId).iVgsIdx = 0 in StartLoadedVgs_InitLineState

154519.18 1 rv add [$RV_CALLEDNUMBER]{13044883179}

154519.18 0 dial callque delete id=63 (MSAccess)

154519.20 1 rvns add [OutDial_Result]{Contacted_Human}

154519.20 1 state live person answered. start [C:\Program Files\VoiceGuide\Scripts\MedGen.vgs]

154519.20 1 tr NewVgsVgm_Goto C:\Program Files\VoiceGuide\Scripts\MedGen.vgs,,,,,0

154519.20 1 rv add [scriptEnd_Time]{10/6/2005 3:45:19 PM}

154519.21 1 rv add [scriptEnd_Goto_Script]{C:\Program Files\VoiceGuide\Scripts\MedGen.vgs}

154519.23 1 rv add [scriptEnd_Goto_Module]{}

154519.23 1 rv add [scriptStart_Time]{10/6/2005 3:45:19 PM}

154519.23 1 rv add [scriptStart_CalledFrom_Module]{Process Confirmation}

154519.23 1 FindFullPathToScript_VgsOrVgp start [C:\Program Files\VoiceGuide\Scripts\MedGen.vgs]

154519.25 1 FindFullPathToScript_VgsOrVgp 1

154519.25 0 LoadedVgs_Find C:\Program Files\VoiceGuide\Scripts\MedGen.vgs at idx=2

154519.25 1 rvns add [scriptsPath]{C:\Program Files\VoiceGuide\Scripts\}

154519.27 1 StartModuleDefault=[Format Date and Time]

154519.27 2 tr NewVgsVgm_Goto 1

154519.27 2 tr NewVgsVgm_Goto 2

154519.27 1 fn RunModule start

154519.29 1 tw DialogicEvent 134,TDX_CST,65535,0,0,DE_LCON,,

154519.30 1 event TDX_CST, code=134, state=6001

154519.32 1 timer clear

154519.32 1 state [Format Date and Time] Running VB Script...

154519.32 1 rv replace start (strlen>500)

154519.34 1 rvns [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[FName]{virgil}[Physician]{Doctor Smith's office}[ApptDate]{10/7/2005}[ApptTime]{3:44 PM}[OutDial_RetriesLeft]{2}[$RV_STARTTIME]{10/6/2005 3:45:19 PM}[$RV_DEVICEID]{1}[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[$RV_CALLEDNUMBER]{13044883179}[OutDial_Result]{Contacted_Human}[scriptEnd_Ti

e]{10/6/2005 3:45:19 PM}[scriptEnd_Goto_Script]{C:\Program Files\VoiceGuide\Scripts\MedGen.vgs}[scriptEnd_Goto_Module]{}[scriptStart_Time]{10/6/2005 3:45:19 PM}[scriptStart_CalledFrom_Module]{Process Confirmation}[scriptsPath]{C:\Program Files\VoiceGuide\Scripts\}

154519.34 1 vbs ran [vbs_1_1.vbs], cmd [wscript "C:\Program Files\VoiceGuide\data\vbs_1_1.vbs" //I //T:60]

154520.19 1 Run Script waiting. iRunWait=1 (shellid=3060, process=1376)

154520.20 1 timer set 1 EV_TIMEOUT_CHECKONSTATE

154520.21 2 tr NewVgsVgm_Goto end

154520.26 1 cl RvGet RV[ApptDate]

154520.27 1 rv replace start: [$RV[ApptDate]]

154520.27 1 rvns [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[FName]{virgil}[Physician]{Doctor Smith's office}[ApptDate]{10/7/2005}[ApptTime]{3:44 PM}[OutDial_RetriesLeft]{2}[$RV_STARTTIME]{10/6/2005 3:45:19 PM}[$RV_DEVICEID]{1}[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[$RV_CALLEDNUMBER]{13044883179}[OutDial_Result]{Contacted_Human}[scriptEnd_Ti

e]{10/6/2005 3:45:19 PM}[scriptEnd_Goto_Script]{C:\Program Files\VoiceGuide\Scripts\MedGen.vgs}[scriptEnd_Goto_Module]{}[scriptStart_Time]{10/6/2005 3:45:19 PM}[scriptStart_CalledFrom_Module]{Process Confirmation}[scriptsPath]{C:\Program Files\VoiceGuide\Scripts\}

154520.28 1 rv replace end: [10/7/2005]

154520.30 1 cl Run_ResultReturn >>[OurText]{Friday October 7th}[sGreeting]{Good evening,}<<

154520.30 1 rvns add [OurText]{Friday October 7th}

154520.30 1 rvns add [sGreeting]{Good evening,}

154520.30 1 cl module's runwait=1, WavPlayHasNowFinished=0

154520.32 1 fn RunModule start

154520.34 1 timer clear

154520.35 1 Play Module start

154520.35 1 state [Greeting] Playing

154520.36 1 rv replace start: [$RV[sGreeting] $RV[FName], I'm calling from $RV[Physician] to remind you about your appointment, on $RV[OurText] at $RV[ApptTime]]

154520.36 1 rvns [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[FName]{virgil}[Physician]{Doctor Smith's office}[ApptDate]{10/7/2005}[ApptTime]{3:44 PM}[OutDial_RetriesLeft]{2}[$RV_STARTTIME]{10/6/2005 3:45:19 PM}[$RV_DEVICEID]{1}[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[$RV_CALLEDNUMBER]{13044883179}[OutDial_Result]{Contacted_Human}[scriptEnd_Ti

e]{10/6/2005 3:45:19 PM}[scriptEnd_Goto_Script]{C:\Program Files\VoiceGuide\Scripts\MedGen.vgs}[scriptEnd_Goto_Module]{}[scriptStart_Time]{10/6/2005 3:45:19 PM}[scriptStart_CalledFrom_Module]{Process Confirmation}[scriptsPath]{C:\Program Files\VoiceGuide\Scripts\}[OurText]{Friday October 7th}[sGreeting]{Good evening,}

154520.38 1 tts generate start[Good evening, virgil, I'm calling from Doctor Smith's office to remind you about your appointment, on Friday October 7th at 3:44 PM]

154520.38 1 tts generate wait

154520.96 1 tts generate finish

154520.97 1 state [Greeting] Playing (C:\Program Files\VoiceGuide\data\tts1.wav)

154520.98 1 tw ConvertWav2Vox C:\Program Files\VoiceGuide\data\tts1.wav

154520.98 1 timer clear

154521.11 1 tw wav->vox convert end 483557,C:\Program Files\VoiceGuide\data\tts1.vox,1,0,,

154521.14 1 play start ok, lPlayId=483687

154533.14 1 tw PlayEnd 1 483687

154533.14 1 play end id=483687, (current ID)

154533.16 1 event EV_PLAY_FINISHED, code=8001, state=1100

154533.16 1 LsPlayMsg EV_PLAY_FINISHED,EV_PLAY_FINISHED

154533.16 1 path {EV_PLAY_FINISHED} not found

154533.16 1 timer set 10 EV_TIMEOUT_HANGUP

154533.18 1 timer set 0 EV_TIMEOUT_GOTOMODULE

154533.18 1 event EV_TIMEOUT_GOTOMODULE, code=9002, state=1101

154533.18 1 LsPlayMsgFinished EV_TIMEOUT_GOTOMODULE,EV_TIMEOUT_GOTOMODULE

154533.20 1 path {EV_TIMEOUT_GOTOMODULE} not found

154533.20 1 fn RunModule start

154533.20 1 timer clear

154533.21 1 state [AMDetect] Running VB Script...

154533.21 1 rv replace start: [set vg = CreateObject("VoiceGuide.CommandLink")

sCallStat = vg.RvGet($RV_LINEID, "RV[OutDial_Result]")

set vg = Nothing

If sCallStat = "Contacted_Human" then

sResult = "verify_passed"

Else

sResult = "verify_failed"

End If

]

154533.23 1 rvns [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[FName]{virgil}[Physician]{Doctor Smith's office}[ApptDate]{10/7/2005}[ApptTime]{3:44 PM}[OutDial_RetriesLeft]{2}[$RV_STARTTIME]{10/6/2005 3:45:19 PM}[$RV_DEVICEID]{1}[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[$RV_CALLEDNUMBER]{13044883179}[OutDial_Result]{Contacted_Human}[scriptEnd_Ti

e]{10/6/2005 3:45:19 PM}[scriptEnd_Goto_Script]{C:\Program Files\VoiceGuide\Scripts\MedGen.vgs}[scriptEnd_Goto_Module]{}[scriptStart_Time]{10/6/2005 3:45:19 PM}[scriptStart_CalledFrom_Module]{Process Confirmation}[scriptsPath]{C:\Program Files\VoiceGuide\Scripts\}[OurText]{Friday October 7th}[sGreeting]{Good evening,}

154533.25 1 vbs ran [vbs_1_2.vbs], cmd [wscript "C:\Program Files\VoiceGuide\data\vbs_1_2.vbs" //I //T:60]

154533.32 1 Run Script waiting. iRunWait=1 (shellid=2900, process=1408)

154533.32 1 timer set 1 EV_TIMEOUT_CHECKONSTATE

154533.32 1 tw DialogicEvent 129,TDX_PLAY,483687,0,0,,,

154533.32 1 event TDX_PLAY, code=129, state=1501

154533.34 1 LsRunWaitTillFinished EV_UNKNOWN_129

154533.39 1 cl RvGet RV[OutDial_Result]

154533.41 1 rv replace start: [$RV[OutDial_Result]]

154533.41 1 rvns [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[FName]{virgil}[Physician]{Doctor Smith's office}[ApptDate]{10/7/2005}[ApptTime]{3:44 PM}[OutDial_RetriesLeft]{2}[$RV_STARTTIME]{10/6/2005 3:45:19 PM}[$RV_DEVICEID]{1}[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[$RV_CALLEDNUMBER]{13044883179}[OutDial_Result]{Contacted_Human}[scriptEnd_Ti

e]{10/6/2005 3:45:19 PM}[scriptEnd_Goto_Script]{C:\Program Files\VoiceGuide\Scripts\MedGen.vgs}[scriptEnd_Goto_Module]{}[scriptStart_Time]{10/6/2005 3:45:19 PM}[scriptStart_CalledFrom_Module]{Process Confirmation}[scriptsPath]{C:\Program Files\VoiceGuide\Scripts\}[OurText]{Friday October 7th}[sGreeting]{Good evening,}

154533.41 1 rv replace end: [Contacted_Human]

154534.26 1 timer fired EV_TIMEOUT_CHECKONSTATE

154534.27 1 event EV_TIMEOUT_CHECKONSTATE, code=9007, state=1501

154534.27 1 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

154534.28 1 task completed (shellid=2900, process=1408) vgm=19, iRunWait=1, iRunWait_ExeResult_NextVgm=0

154534.29 1 no result file returned from program (VGRUNRESULT_1.TXT or SHLRESLT.TXT)

154534.29 1 task completed LsRunWaitChooseNext iNextVgm=15

154534.30 1 fn RunModule start

154534.30 1 timer clear

154534.30 1 Play Module start

154534.32 1 state [Thank You] Playing

154534.32 1 tts generate start[Thank You, goodbye]

154534.34 1 tts generate wait

154534.39 1 tts generate finish

154534.39 1 state [Thank You] Playing (C:\Program Files\VoiceGuide\data\tts1.wav)

154534.39 1 tw ConvertWav2Vox C:\Program Files\VoiceGuide\data\tts1.wav

154534.41 1 timer clear

154534.45 1 tw wav->vox convert end 496976,C:\Program Files\VoiceGuide\data\tts1.vox,1,0,,

154534.48 1 play start ok, lPlayId=497026

154536.20 1 tw PlayEnd 1 497026

154536.21 1 play end id=497026, (current ID)

154536.21 1 event EV_PLAY_FINISHED, code=8001, state=1100

154536.22 1 LsPlayMsg EV_PLAY_FINISHED,EV_PLAY_FINISHED

154536.22 1 path {EV_PLAY_FINISHED} not found

154536.23 1 timer set 10 EV_TIMEOUT_HANGUP

154536.24 1 timer set 0 EV_TIMEOUT_GOTOMODULE

154536.25 1 event EV_TIMEOUT_GOTOMODULE, code=9002, state=1101

154536.25 1 LsPlayMsgFinished EV_TIMEOUT_GOTOMODULE,EV_TIMEOUT_GOTOMODULE

154536.26 1 path {EV_TIMEOUT_GOTOMODULE} not found

154536.26 1 fn RunModule start

154536.27 1 tw DialogicEvent 129,TDX_PLAY,497026,0,0,,,

154536.28 1 event TDX_PLAY, code=129, state=6001

154536.28 1 timer clear

154536.29 1 state [Process Confirmation] Running VB Script...

154536.30 1 vbs ran [vbs_1_3.vbs], cmd [wscript "C:\Program Files\VoiceGuide\data\vbs_1_3.vbs" //I //T:60]

154536.36 1 Run Script waiting. iRunWait=1 (shellid=800, process=1408)

154536.37 1 timer set 1 EV_TIMEOUT_CHECKONSTATE

154537.28 1 timer fired EV_TIMEOUT_CHECKONSTATE

154537.29 1 event EV_TIMEOUT_CHECKONSTATE, code=9007, state=1501

154537.29 1 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

154537.30 1 task completed (shellid=800, process=1408) vgm=14, iRunWait=1, iRunWait_ExeResult_NextVgm=0

154537.31 1 no result file returned from program (VGRUNRESULT_1.TXT or SHLRESLT.TXT)

154537.31 1 rv add [Hangup Time]{10/6/2005 3:45:37 PM}

154537.32 1 state Hanging up call... [WaitTillFinished - next module not specified]

154537.33 1 HangupCall_Common hCall=481704

154537.34 1 rec RecSoundStop ok

154537.35 1 play PlaySoundStop ok

154537.35 1 timer set 2 EV_TIMEOUT_WAITFORIDLEAFTERLINEDROP

154537.36 1 fnHangupCall end

154537.40 1 event callstate IDLE 1 0 0

154537.40 1 WorkingMode@Idle=

154537.41 1 timer clear

154537.42 1 rec RecSoundStop ok

154537.43 1 play PlaySoundStop ok

154537.44 1 rv add [CallEndTime]{10/6/2005 3:45:37 PM}

154537.45 1 timer set 1 EV_TIMEOUT_TIMETOREINITLINE

154537.45 1 tw DialogicEvent 135,TDX_SETHOOK,0,0,0,DX_ONHOOK,,

154537.46 1 event TDX_SETHOOK, code=135, state=900

154537.47 1 LsAwaitingCalls EV_UNKNOWN_135

154538.37 1 timer fired EV_TIMEOUT_TIMETOREINITLINE

154538.38 1 event EV_TIMEOUT_TIMETOREINITLINE, code=9008, state=900

154538.38 1 init atidle reinit : start

154538.39 1 init atidle reinit iConferenceOtherLegLid=-1

154538.40 1 init atidle reinit : reset all LineState variables

154538.40 1 timer set 0.3 EV_TIMEOUT_ATERIDLE_ALLOWOUT

154538.41 1 state Waiting for a call...

154538.71 1 timer fired EV_TIMEOUT_ATERIDLE_ALLOWOUT

154538.71 1 event EV_TIMEOUT_ATERIDLE_ALLOWOUT, code=9013, state=900

Share this post


Link to post

Trace shows Dialogic card reported that real Human answer was detected, and then the script went through the following modules:

 

[Format Date and Time]

[Greeting]

[AMDetect]

[Thank You]

 

Trace also shows that after module [AMDetect]:

 

154534.29 1 no result file returned from program (VGRUNRESULT_1.TXT or SHLRESLT.TXT)

 

Hard to say know whether this happened by design or by a fault in module [AMDetect].

 

Please post the script which you are using.

Share this post


Link to post

AMDetect script:

 

set vg = CreateObject("VoiceGuide.CommandLink")

sCallStat = vg.RvGet($RV_LINEID, "RV[OutDial_Result]")

set vg = Nothing

If sCallStat = "Contacted_Human" then

sResult = "verify_passed"

Else

sResult = "verify_failed"

End If

 

 

Paths are:

on {success} goto [Get Confirmation]

on {fail} goto [Thank You]

Share this post


Link to post

Two things wrong with this script.

 

1. The script quoted is not returning the result back to VoiceGuide.

 

2. And even if it were, the sResult variable is set to a wrong value. "verify_passed" and "verify_failed" is only used within a Get Numbers module's verification script - not in a Run VBScript module.

 

Have a look at examples in the help file: http://www.voiceguide.com/vghelp/html/modVbs.htm

Share this post


Link to post

hey just for fun I rewrote your script...

It should be something like:

 

set vg = CreateObject("VoiceGuide.CommandLink")

sCallStat = vg.RvGet($RV_LINEID, "RV[OutDial_Result]")

'Note: Line above okay, but just could be: sCallStat = "$RV[OutDial_Result]"

If sCallStat = "Contacted_Human" then

  sResult = "success"

Else

  sResult = ""

End If

vg.Run_ResultReturn $RV_LINEID, sResult

set vg = Nothing

+Tim+

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
×