VoiceGuide IVR Software Main Page
Jump to content

Issuing multiple API calls in one module

Recommended Posts

How to combine in one module:

- setting the $RV[DoNotStopMOH] to 0

- stop the Play moh

- start play prompt

 

 

 

BTW.

Is possible to back previous available functionality that stop MoH when module include other playable prompts?

Share this post


Link to post

You can try the below.

 

You need to have the module from which you issue this combination of API calls wait until the script completes.

 

et vg = CreateObject("vgServices.CommandLink")
vg.RvSet $RV_LINEID, "DoNotStopMOH", "0"
vg.Play_Stop $RV_LINEID
vg.Play_Start $RV_LINEID, "c:\mypath\prompt.wav"
vg.Run_ResultReturn $RV_LINEID, "success"
set vg = Nothing

Share this post


Link to post

How to integrate


  •  
  • Clear the $RV[DoNotStopMOH] flag (set the $RV[DoNotStopMOH] to 0)
  • Then stop the Play

 

in one VBS module?

 

 

in previous versions of VG it wan unnecessary to set DoNotStopMOH to 0 value before "vg.Play_Stop $RV_LINEID"

Share this post


Link to post

You need to have the module from which you issue this combination of API calls wait until the script completes.

 

set vg = CreateObject("vgServices.CommandLink")
vg.RvSet $RV_LINEID, "DoNotStopMOH", "0"
vg.Play_Stop $RV_LINEID
vg.Run_ResultReturn $RV_LINEID, "success"
set vg = Nothing

 

in previous versions of VG it wan unnecessary to set DoNotStopMOH to 0 value before "vg.Play_Stop $RV_LINEID"

You should be able to still issue Play_Stop API call regardless of what value the $RV[DoNotStopMOH] is set to.

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
×