Guest Kyle Sampson Report post Posted 04/22/2004 03:49 PM I've noticed that sometimes some of the result variables are not set on outgoing calls. Specifically, the $RV_STARTTIME is set to an empty string, and $RV_CALLLENGTH is set to 0, well after the call has started. This seems to occur randomly -- sending out the same call using the same script will work one time, but not the next time. It seems to occur more often with calls answered by an answering machine, but it has occurred with those answered by a human as well. We currently have the outgoing calls setup to use different scripts depending on whether or not an answering machine answered the call. Each script plays a different wave file, hangs up the call, and runs another VG script. This third script contains a single VB script module that writes the call start time and length to a file. It parses the date using MyDate = CDate("$RV_STARTTIME"). When it reaches that line, VG gives a runtime error if the $RV_STARTTIME variable is not set, since the line would be run as MyDate = CDate(""). It works fine if the variable is set, however. I've tried having the VB script duplicated in both scripts (instead of running a separate VG script when the call is finished) before and after the hangup time, and they all exhibit the same behavior. Any thoughts? Share this post Link to post
SupportTeam Report post Posted 04/22/2004 11:44 PM $RV_STARTTIME etc should be getting set at start of every call. Could you please post a copy of VoiceGuide's Debug Printout which captures the problem, this will allow us to see what is going wrong. (When running the script click on VoiceGuide's View menu and select 'Event Trace Log' option - any log information will then appear in this window. You must open the trace window before making the call.) Share this post Link to post
Guest Kyle Sampson Report post Posted 04/23/2004 03:00 PM I've included the VG scripts that were used as a separate file. Below is what I received in the event log while running a test call to an answering machine (cell phone voice mail): 085600.61 5 dial [748,3034753383,404230856,0,2359,MoTuWeThFrSaSu,,,dxxxB1C1,dxxxB1C2,,,1,,C:\data\testscripts\dialout.vgs,C:\data\testscripts\dialout_ansmach.vgs,[Message]{C:\data\testscripts\messages\call10037.wav}[CRID]{490}[AttemptID]{103}[Message2]{C:\data\testscripts\messages\call10037_2.wav},60,0,1,C:\data\testscripts\endofcall103.vb script:[C:\data\testscripts\endofcall.vgs] 085622.23 0 LoadedVgs_Find C:\data\testscripts\endofcall.vgs at idx=3 085622.24 5 TimeoutClear 085622.25 5 [updateStatus] Running VB Script... 085622.26 5 RVreplace start (strlen>500) 085622.27 5 RVns [Message]{C:\data\testscripts\messages\call10037.wav}[CRID]{490}[AttemptID]{103}[Message2]{C:\data\testscripts\messages\call10037_2.wav}[OutDial_RetriesLeft]{0}[scriptEnd_Time]{4/23/2004 8:56:19 AM}[scriptEnd_Goto_Script]{C:\data\testscripts\dialout_ansmach.vgs}[scriptEnd_Goto_Module]{}[scriptStart_Time]{4/23/2004 8:56:19 AM}[scriptStart_CalledFrom_Module]{UpdateStatus}[scriptsPath]{C:\data\testscripts\}[isAnsMach_Input]{true}[isAnsMach]{True}[isAnsMach]{True}[Hangup Time]{4/23/2004 8:56:22 AM} 085622.31 5 Run Script waiting... (shellid=1672, process=1328) 085622.32 5 TimeoutSet 1 EV_TIMEOUT_CHECKONSTATE 085622.33 5 tapi Reply (LineEvReply) ok 65809 0 085623.24 5 Timer fired EV_TIMEOUT_CHECKONSTATE 085623.25 5 ScriptEventCode 9007 iLineState=1501 085623.26 5 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE 085623.28 5 task still running (shellid=1672, process=1328) 085623.29 5 TimeoutSet 1 EV_TIMEOUT_CHECKONSTATE 085624.30 5 Timer fired EV_TIMEOUT_CHECKONSTATE 085624.31 5 ScriptEventCode 9007 iLineState=1501 085624.32 5 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE 085624.33 5 task still running (shellid=1672, process=1328) 085624.34 5 TimeoutSet 1 EV_TIMEOUT_CHECKONSTATE 085625.35 5 Timer fired EV_TIMEOUT_CHECKONSTATE 085625.36 5 ScriptEventCode 9007 iLineState=1501 085625.37 5 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE 085625.38 5 task still running (shellid=1672, process=1328) 085625.39 5 TimeoutSet 1 EV_TIMEOUT_CHECKONSTATE 085626.40 5 Timer fired EV_TIMEOUT_CHECKONSTATE 085626.41 5 ScriptEventCode 9007 iLineState=1501 085626.42 5 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE 085626.43 5 task completed (shellid=1672, process=1328) 085626.44 5 No information returned from program to VG (no VGRUNRESULT_5.TXT or SHLRESLT.TXT) 085626.45 5 rv add [Hangup Time]{4/23/2004 8:56:26 AM} 085626.46 5 Hanging up call... [WaitTillFinished - next module not specified] 085626.47 5 HangupCall_Common Mode=AfterHangupRun 085626.48 5 ReinitTelephony due to IDLE 085626.50 5 tapic lineDeallocateCall(MainCall:65826) 0 085626.68 5 lineOpen(5)=> 085626.70 5 Waiting for a call... 085626.71 5 LineHandle=65792 085626.71 5 TimeoutSet 3 EV_TIMEOUT_ATERIDLE_ALLOWOUT 085629.73 5 Timer fired EV_TIMEOUT_ATERIDLE_ALLOWOUT 085629.75 5 ScriptEventCode 9013 iLineState=900 scripts.txt Share this post Link to post
SupportTeam Report post Posted 04/23/2004 10:40 PM Looks like $RV_STARTTIME was not getting set when an outgoing call was being answered by an Answering Machine (it was set on other calls). Please place attached .exe in the VoiceGuide directory, overwriting previous file. The $RV_STARTTIME will now be set on calls answered by answering machine as well. VgMulti_5.2.1032.zip Share this post Link to post
Guest Kyle Sampson Report post Posted 04/26/2004 07:49 PM The update works well for $RV_STARTTIME, but $RV_CALLLENGTH is still being set to 0. The test we're sending out lasts around 20 seconds. Share this post Link to post
SupportTeam Report post Posted 04/26/2004 11:05 PM In attached .exe update $RV_CALLLENGTH is now also available when an outgoing call was being answered by an Answering Machine (it was set on other calls). VgMulti_5.2.1035.zip Share this post Link to post