VoiceGuide IVR Software Main Page
Jump to content

Triggering a waiting channel to exit MusicOnHold and go to Transfer module

Recommended Posts

Hello,
we need to confirm whether the following mechanism is supported.

A waiting call is placed in a Play module (MusicOnHold).
When the active call ends, a separate termination script must send a command to that waiting channel to:

  1. exit the Play module,

  2. immediately enter the Transfer module.

Question:
What is the recommended method in current VoiceGuide to let one script trigger a Script_Goto (or equivalent) on another active channel?
Years ago we were told this could be done via HTTP in version 7.6.
What is the correct approach today?

Share this post


Link to post
Quote

When the active call ends, a separate termination script must send a command to that waiting channel to:

...

Yes, this can be done from a 'termination script' or any other monitoring type script the runs in background.

A  Script_Goto API call can be made from any process, and can be specified to execute on any channel. You just specify the 'Line ID' of the channel on which this Script_Goto is to be executed on.

The 'termination script' that you are referring to is most likely either a VBScript/JavaScript or a VoiceGuide script that can use a 'Run VBScript/JavaScript' module in it - so you can invoke a Script_Goto from there using the basic call method that is intended top be used from VBScript/JavaScript - as per demo shown here: https://www.voiceguide.com/vghelp/source/html/com_script_goto.htm

Share this post


Link to post

Thank you for your previous explanation.

I would like to confirm whether all three Script_Goto formats below are acceptable, depending on the scenario.

  1. Jump to another script, starting from its default module: vg.Script_Goto $RV_LINEID, "OtherScript.vgs", "", ""

  2. Jump to another script and a specific module inside it: vg.Script_Goto $RV_LINEID, "OtherScript.vgs|calltransfer", "", ""

  3. Jump to a specific module in the same script (when we know the channel is currently running this script): vg.Script_Goto $RV_LINEID, "|calltransfer", "", ""

Are all three forms valid, and is the third one the recommended way when the target module is in the same script?

Thank you for the clarification.

 

Share this post


Link to post

The below approach should work :

 

Jump to another script, starting from its default module: vg.Script_Goto $RV_LINEID, "OtherScript.vgs", "", ""

Jump to another script and a specific module inside it: vg.Script_Goto $RV_LINEID, "OtherScript.vgs", "calltransfer", ""

Jump to a specific module in the same script (when we know the channel is currently running this script): vg.Script_Goto $RV_LINEID, "", "calltransfer", ""

 

Note that $RV_LINEID placeholder will just be replaced by the Line ID of the line that is currently running the VBScript/JavaScript.

If you want to issue the Script_Goto command to another line, then you need to specify the variable name that holds that other line's Line ID.

 

Share this post


Link to post

Thank you for the clarification.
I realize now that the information was already described in the Script_Goto documentation, and I sent my question a bit too quickly without revisiting that section.
Your explanation confirmed the correct syntax, and everything is clear now.
Thanks again for the support.

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
×