VoiceGuide IVR Software Main Page
Jump to content

Breakout Scripts

Recommended Posts

Hi,

 

Im currently adding to our scripts with new stuff our old scripts were huge so I've decided to stick them into different script sections each to do a specific task etc.

 

I have a main script that holds the main options and processs for the IVR call. From specific modules I call scripts using VBScript as below

 

set vg = CreateObject("vgServices.CommandLink")

vg.Script_Gosub $RV_LINEID, "EngineerCompletion_Engineer_Pin.vgs", "", "", "", ""

set vg = Nothing

 

This works fine and the script variables are usable between the master and child scripts. The problem I have is returning to the calling script I have used

 

set vg = CreateObject("vgServices.CommandLink")

vg.Script_Return $RV_LINEID, "success"
vg.Run_ResultReturn $RV_LINEID, ""

set vg = Nothing

 

But the call just gets terminated with nothing in the log as far as I can see to say why. The VBScript calling the child script has a success goto but nothing happens. What am I doing wrong?

 

 

Many thanks

 

Andy

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
×