VoiceGuide IVR Software Main Page
Jump to content

"Run Program" Module

Recommended Posts

i have a script that has a "Run Program" module.

while running the script, a program is run and a wav file is played at the same time when it comes to that module.

however, it does not go on to the next module although the program is run successfully and the wav file has played finish.

the phone just has no sound at all.

 

i checked the box "wait until program completes". and then for the paths, no matter i put "success" or "fail", it just will not move on to the next module.

could u advise me?

 

thanks.

Share this post


Link to post

If you select "wait until program completes" then as per VG Help file:

If the 'wait' option is selected then VoiceGuide will pause until the program completes and afterwards VoiceGuide will look for the result file which can be optionally created by the called program. The file can be created in the script's directory, or in the directory where the program was ran from. The file can either be called VGRUNRESULT_LineNumber.TXT or SHLRESLT.TXT

 

If you have read the above and are still experiencing problems could you please post a copy of VoiceGuide's Debug Printout which captures the problem, this will allow us to see what is happening in your script.

 

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.

 

Can you also post the script which you are using?

Share this post


Link to post

I do not have the two text files. i'm still having problems. i attach my script below to let you have a look.

 

i copied the events from the "Event Trace Log" to let you have a look (my run program module for the first 3 steps is simply to send sms out thru a GSM modem and playing the voice file concurrently. it will not hang up the phone after running the first module, it will just have a sound for a long period of time.):

 

100204.01 0 callstate OFFERING 66305 0 4

100204.01 0 ring 1

100204.61 0 Lev_CallerID [98274125,]

100207.01 0 ring 2

100207.01 0 Answer the call at 3/5/2004 10:02:07 AM

100207.01 0 lineAnswer(66305) => 65980

100207.02 0 callstate ACCEPTED 66305 0 0

100208.60 0 tapi Reply (LineEvReply) ok 65980 0

100208.61 0 callstate CONNECTED 66305,0,0

100208.61 0 WorkingModeTAPI@Connected=

100208.61 0 WorkingModeScript@Connected=

100208.61 0 Inband detection not enabled

100208.61 0 StartLoadedVgs at 3/5/2004 10:02:08 AM

100208.62 0 [Get Client ID] Run Program

100208.62 0 running:[C:\Documents and Settings\eng00507\Desktop\SMS_0.exe] WindowMode:[NormalFocus]

100208.80 0 Run Program waiting... (shellid=1616, process=664)

100208.82 0 [Get Client ID] Playing (PayGetId.wav)

100208.97 0 PlaySoundStart ok [C:\Voiceguide\Scripts\Credit Card Payment\PayGetId.wav]

100209.90 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100209.92 0 task still running (shellid=1616, process=664)

100210.92 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100210.92 0 task still running (shellid=1616, process=664)

100211.93 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100211.93 0 task still running (shellid=1616, process=664)

100212.95 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100212.95 0 task still running (shellid=1616, process=664)

100213.96 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100213.96 0 task still running (shellid=1616, process=664)

100214.97 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100214.97 0 task still running (shellid=1616, process=664)

100215.98 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100215.98 0 task still running (shellid=1616, process=664)

100216.99 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100216.99 0 task still running (shellid=1616, process=664)

100217.52 0 Play End line[0] (id=737987)

100217.52 0 LsRunWaitTillFinished EV_PLAY_FINISHED

100218.12 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100218.12 0 task still running (shellid=1616, process=664)

100219.13 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100219.13 0 task still running (shellid=1616, process=664)

100219.36 0 dtmf 4 (66305,52,2)

100219.36 0 LsRunWaitTillFinished 4

100219.36 0 path {4} not found

100219.89 0 dtmf 5 (66305,53,2)

100219.91 0 LsRunWaitTillFinished 5

100219.91 0 path {5} not found

100220.14 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100220.14 0 task still running (shellid=1616, process=664)

100220.36 0 dtmf 6 (66305,54,2)

100220.37 0 LsRunWaitTillFinished 6

100220.37 0 path {6} not found

100220.84 0 dtmf 9 (66305,57,2)

100220.85 0 LsRunWaitTillFinished 9

100220.85 0 path {9} not found

100221.14 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100221.14 0 task still running (shellid=1616, process=664)

100221.85 0 dtmf # (66305,35,2)

100221.86 0 LsRunWaitTillFinished #

100221.86 0 path {#} not found

100222.14 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100222.14 0 task still running (shellid=1616, process=664)

100223.15 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100223.15 0 task still running (shellid=1616, process=664)

100224.15 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100224.15 0 task still running (shellid=1616, process=664)

100225.15 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100225.15 0 task still running (shellid=1616, process=664)

100226.15 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100226.15 0 task still running (shellid=1616, process=664)

100227.16 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100227.16 0 task still running (shellid=1616, process=664)

100228.16 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100228.16 0 task still running (shellid=1616, process=664)

100229.16 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100229.16 0 task still running (shellid=1616, process=664)

100230.16 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100230.16 0 task still running (shellid=1616, process=664)

100231.16 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100231.16 0 task still running (shellid=1616, process=664)

100232.16 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100232.16 0 task still running (shellid=1616, process=664)

100233.16 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100233.16 0 task still running (shellid=1616, process=664)

100234.16 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100234.16 0 task still running (shellid=1616, process=664)

100235.17 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100235.17 0 task still running (shellid=1616, process=664)

100236.17 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100236.17 0 task still running (shellid=1616, process=664)

100237.17 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100237.17 0 task still running (shellid=1616, process=664)

100238.17 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100238.17 0 task still running (shellid=1616, process=664)

100239.05 0 sys cleanup Start

100239.05 0 sys cleanup End

100239.18 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100239.18 0 task still running (shellid=1616, process=664)

100240.20 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100240.20 0 task still running (shellid=1616, process=664)

100241.20 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100241.20 0 task still running (shellid=1616, process=664)

100242.36 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100242.36 0 task still running (shellid=1616, process=664)

100243.37 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100243.37 0 task still running (shellid=1616, process=664)

100244.38 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

100244.38 0 task still running (shellid=1616, process=664)

100244.42 0 btn Hangup on line 0

100244.43 0 LsRunWaitTillFinished EV_TIMEOUT_HANGUP

100244.43 0 Hanging up call...

100244.43 0 RecSoundStop ok

100244.43 0 PlaySoundStop ok

100244.45 0 fnHangupCall end

100245.53 0 callstate DISCONNECTED 66305,1,0

100245.53 0 LsAwaitingCalls EV_REMOTEPARTY_DISCONNECT

100245.54 0 Hanging up call...

100245.54 0 RecSoundStop ok

100245.55 0 PlaySoundStop ok

100245.55 0 fnHangupCall end

100245.56 0 callstate IDLE 66305 0 0

100245.56 0 WorkingMode@Idle=

100245.61 0 tapi Reply (LineEvReply) ok 65997 0

100245.61 0 tapi Reply (LineEvReply) ok 66014 0

100246.59 0 LsAwaitingCalls EV_TIMEOUT_TIMETOREINITLINE

100246.59 0 ReinitTelephony due to IDLE start

100246.59 0 tapic lineDeallocateCall(MainCall:66305) 0

100246.61 0 lineOpen(0) => 0

100246.61 0 Waiting for a call...

100246.61 0 lineOpen(0)LineHandle=66031

 

 

hope you can help me solve this problem. thanks

Credit_Card_Payment_1_.vgs

Share this post


Link to post

It looks like the program you start (C:\Documents and Settings\eng00507\Desktop\SMS_0.exe) never actually exits...

 

That's why you see all those "task still running" entries in the log file....

 

As said in VG Help file:

If the 'wait' option is selected then VoiceGuide will pause until the program completes

 

If you do no need to wait for program to complete the select "do not wait for program to complete" option.

 

Why are you waiting for program complete if it is not returning any info back to VG anyway?

 

Can you make this .exe exit after it has stopped doing what it is supposed to do?

 

You can have VG to shutdown the program as well. From VG Help file:

Timeout Paths

 

When used in Run Program module, a Timeout Path can be used to limit the maximum amount of time the module will wait for the called program to finish (when "Wait until program finishes" option is selected). When the timeout is reached the module will close the program it has called, and go the module specified in the Timeout Path.

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
×