a_jam_sandwich Report post Posted 04/20/2009 01:33 PM 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
SupportTeam Report post Posted 04/20/2009 07:10 PM You should not use both Script_Return and Run_ResultReturn. Use just: vg.Script_Return $RV_LINEID, "" And don't specify "success" in the return parameter - that parameter is meant for RV's only. See: http://www.voiceguide.com/vghelp/source/ht...ript_return.htm Share this post Link to post
a_jam_sandwich Report post Posted 04/21/2009 10:57 AM Many thanks working now. Share this post Link to post
SupportTeam Report post Posted 04/21/2009 09:15 PM Thank you for letting us know the problem is now resolved. Share this post Link to post