VoiceGuide IVR Software Main Page
Jump to content

Dialer_outdialqueadd - Variables And Completion

Recommended Posts

set vg = CreateObject("VoiceGuide.CommandLink")

vg.Dialer_OutDialQueAdd "somenumber", 0, 0, 0, "", "", 1, "", "somescript.vgs", "", "", 0, 2, 5, ""

 

The script contains a module called Hello, where the user is prompted to press 1,2 or 3 and then the script hangs up.

 

How do I wait until the script ends before getting the value of HELLO? Currently I have to add WSCRIPT.SLEEP 60000 and guess how long it will take.

 

How do I get the value of the HELLO variable directly?

Currently I can use:

sReturnValue = vg.RvGet_All(1)

and parse the value (split all variables and values).

Attempts to parse directly have failed:

sReturnValue = vg.RvGet(1, "${HELLO}")

OR

sReturnValue = vg.RvGet(1, "$HELLO")

OR

sReturnValue = vg.RvGet(1, "HELLO")

 

Thanks

Share this post


Link to post
How do I wait until the script ends before getting the value of HELLO?

A better approach would be to do your processing which requires the value entered in module "Hello" from within the VoiceGuide script itself - in a Run VBScript type module. If you canot find a way to do it like that then you should setup a loop which periodically tests if $RV[HELLO] is set (This of course relies that recipient of call will press something instead of just hanging up - so if you must use the 'external script' approach then you'll need to also check $RV_CALLSTATE)

 

How do I get the value of the HELLO variable directly?

From a totally external VBScript either of these should work:

 

sReturnValue = vg.RvGet(1, "RV[HELLO]")

 

or

 

sReturnValue = vg.RvGet(1, "$RV[HELLO]")

 

From within a Run VBScript module:

 

sReturnValue = "$RV[HELLO]"

 

or

 

sReturnValue = vg.RvGet(1, "RV[HELLO]")

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
×