VoiceGuide IVR Software Main Page
Jump to content

Using Play_start

Recommended Posts

I made a test script using Play_Start inside Run VBScript.

 

set vg = CreateObject("VoiceGuide.CommandLink")

vg.Play_Start $RV_LINEID, "Sound Files\Student ID Not Found.wav"

Set vg = Nothing

 

The sound file plays OK, but the program never move on.

The debug file is below:

 

160052.74 6 devstate NUMCALLS 0 0

160052.74 6 tapi callstate OFFERING 65838 0 4

160052.74 6 rv clear

160052.74 6 answer the call at 2006-05-05 16:00:52

160052.76 6 lineAnswer(65838) => 66350

160052.76 6 ev Lev_CallerID [,,0000]

160052.76 6 rv lg add [DNIS]{0000}

160052.76 6 callinfo CALLEDID

160052.76 6 callinfo ORIGIN

160052.76 6 ring 0

160053.29 6 tapi callstate CONNECTED 65838 1 0

160053.29 6 callstate CONNECTED 65838,1,0

160053.29 6 WorkingModeTAPI@Connected=

160053.30 6 WorkingModeScript@Connected=

160053.34 6 Inband detection not enabled

160053.34 6 startLoadedVgs at 2006-05-05 16:00:53, script interpretor VgMulti v5.2.5049 3

160053.34 6 rv ns add [scriptsPath]{C:\Phone Registration 2007-2008\Start_Stop Here\}

160053.34 6 rv ns add [scriptPath]{C:\Phone Registration 2007-2008\Start_Stop Here}

160053.34 6 rv lg add [$RV_STARTTIME]{2006-05-05 16:00:53}

160053.34 6 rv lg add [$RV_DEVICEID]{6}

160053.34 6 rv lg add [$RV_CIDNAME]{}

160053.35 6 rv ns add [PathApp]{C:\Program Files\VoiceGuide\}

160053.35 6 rv lg add [$RV_CIDNUMBER]{}

160053.35 6 rv lg add [$RV_DNIS]{0000}

160053.35 6 rv lg add [DNIS]{0000}

160053.35 6 tapi Reply (LineEvReply) ok 66350 0 LineCallState=CONNECTED

160053.35 6 callinfo MONITORMODES

160053.35 6 timer clear

160053.37 6 state [Test VB Script] Running VB Script...

160053.37 6 rv replace start: [set vg = CreateObject("VoiceGuide.CommandLink")

 

vg.Play_Start $RV_LINEID, "Sound Files\Student ID Not Found.wav"

 

Set vg = Nothing

]

160053.37 6 rv ns [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[DNIS]{0000}[scriptsPath]{C:\Phone Registration 2007-2008\Start_Stop Here\}[scriptPath]{C:\Phone Registration 2007-2008\Start_Stop Here}[$RV_STARTTIME]{2006-05-05 16:00:53}[$RV_DEVICEID]{6}[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[$RV_CIDNUMBER]{}[$RV_DNIS]{0000}[DNIS]{0000}

160053.37 6 rv replace end: [set vg = CreateObject("VoiceGuide.CommandLink")

 

vg.Play_Start 6, "Sound Files\Student ID Not Found.wav"

 

Set vg = Nothing

]

160053.37 6 eng run vbs [wscript "C:\Program Files\VoiceGuide\temp\vbs_6_1_0505160053.vbs" //I] copy of script in: vbs_6_1_0505160053.vbs

160053.40 6 Run Script waiting. iRunWait=2 (shellid=1560, process=1456)

160053.40 6 timer set 1 EV_TIMEOUT_CHECKONSTATE

160053.43 6 cl Play_Start Sound Files\Student ID Not Found.wav

160053.43 6 play set playid=595875

160053.46 6 PlaySoundStart ok [sound Files\Student ID Not Found.wav]

160053.46 6 timer clear

160053.46 6 callinfo MONITORMODES

160053.62 dial start any summary:|6:hc>0|7:idx=0|8:idx=0|9:idx=0|

 

**** The file stops here when the sound file is playing.

 

160115.68 6 play end current play (playid=595875)

160115.68 6 ScriptEventCode 8001 iLineState=1501

160115.68 6 LsRunWaitTillFinished EV_PLAY_FINISHED

 

*** After the sound file stops the above lines come on and the script just set here.

 

If I let it just set there, after a while this will be added to the debug file:

 

160134.27 0 sys cleanup Start

160134.27 0 sys cleanup deleting C:\Program Files\VoiceGuide\temp\vbs_6_1_0505143715.vbs

160134.27 0 sys cleanup deleting C:\Program Files\VoiceGuide\temp\vbs_6_1_0505144302.vbs

160134.27 0 sys cleanup deleting C:\Program Files\VoiceGuide\temp\vbs_6_1_0505144406.vbs

160134.27 0 sys cleanup deleting C:\Program Files\VoiceGuide\temp\vbs_6_1_0505144428.vbs

160134.29 0 sys cleanup deleting C:\Program Files\VoiceGuide\temp\vbs_6_1_0505144555.vbs

160134.29 0 sys cleanup deleting C:\Program Files\VoiceGuide\temp\vbs_6_1_0505144708.vbs

160134.29 0 sys cleanup deleting C:\Program Files\VoiceGuide\temp\vbs_6_1_0505144757.vbs

160134.29 0 sys cleanup deleting C:\Program Files\VoiceGuide\temp\vbs_6_1_0505145000.vbs

160134.29 0 sys cleanup deleting C:\Program Files\VoiceGuide\temp\vbs_6_1_0505145240.vbs

160134.29 0 sys cleanup deleting C:\Program Files\VoiceGuide\temp\vbs_6_1_0505145333.vbs

160134.30 0 sys cleanup deleting C:\Program Files\VoiceGuide\temp\vbs_6_1_0505145409.vbs

160134.30 0 sys cleanup deleting C:\Program Files\VoiceGuide\temp\vbs_6_1_0505145445.vbs

160134.35 0 sys cleanup End

 

*** Then it just set here until I hang up.

 

160234.41 6 tapi callstate DISCONNECTED 65838 0 0

160234.41 6 ScriptEventCode 9250 iLineState=1501

160234.41 6 LsRunWaitTillFinished EV_REMOTEPARTY_DISCONNECT

160234.41 6 rv lg add [Hangup Time]{2006-05-05 16:02:34}

160234.41 6 state Hanging up call...

160234.41 6 RecSoundStop ok

160234.41 6 PlaySoundStop err=0

160234.41 6 timer set 2 EV_TIMEOUT_WAITFORIDLEAFTERLINEDROP

160234.41 6 fnHangupCall end

160234.46 6 devstate NUMCALLS 0 0

160234.46 6 tapi callstate IDLE 65838 0 0

160234.46 6 WorkingMode@Idle=

160234.46 6 timer clear

160234.46 6 WriteToLogFiles_CurrScriptOnly start

160234.46 WriteToLogFiles_DoWrite start (C:\Phone Registration 2007-2008\Start_Stop Here\TestSound)

160234.46 6 timer set 1 EV_TIMEOUT_TIMETOREINITLINE

160234.46 6 tapi Reply (LineEvReply) ok 66231 0 LineCallState=IDLE

160235.51 6 timer fired EV_TIMEOUT_TIMETOREINITLINE

160235.51 6 ScriptEventCode 9008 iLineState=900

160235.51 6 LsAwaitingCalls EV_TIMEOUT_TIMETOREINITLINE

160235.51 6 ReinitTelephony due to IDLE

160235.51 6 tapic lineDeallocateCall(MainCall:65838) 0

160235.66 6 lineOpen(6)=>

160235.66 6 state Waiting for a call...

160235.66 6 LineHandle=66384

160235.66 6 ClearCallHandle called from ReinitAtIdle

160235.66 6 amchk set AMdet=False in Reinit@idle

160235.66 6 timer set 3 EV_TIMEOUT_ATERIDLE_ALLOWOUT

160236.10 dial start any summary:|6:rdy=0|7:idx=0|8:idx=0|9:idx=0|

160238.95 6 timer fired EV_TIMEOUT_ATERIDLE_ALLOWOUT

160238.95 6 ScriptEventCode 9013 iLineState=900

160239.13 dial start any summary:|6:idx=0|7:idx=0|8:idx=0|9:idx=0|

 

*** Why doesn't the script quit at the end of the sound file?

Share this post


Link to post

I see that you are using the 'TAPI' version of VG.

 

Are you using a Dialogic card? If you are using a Dialogic card then you should really update to using "VoiceGuide for Dialogic"

 

If you want to keep on using the TAPI version of VG then please try updating with attached .exe

 

Also, you may want to use Run_ResultReturn COM function if you'd like for system to go to another module afterwards. eg:

set vg = CreateObject("VoiceGuide.CommandLink")
vg.Play_Start $RV_LINEID, "Sound Files\Student ID Not Found.wav" 
vg.Run_ResultReturn  $RV_LINEID, "AfterPlayEnds" 
Set vg = Nothing

will result in VG going to module [AfterPlayEnds] when the sound file Student ID Not Found.wav finishes playing.

VgMulti_5.2.5051.zip

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
×