VoiceGuide IVR Software Main Page
Jump to content

Script_gosub

Recommended Posts

Hi

 

I am trying to build my own function that creates a string or file names from a number. This string is then available for the following modules. I will be calling the module from several different places in my script, so I need the function to be flexible

 

eg:

 

Number passed in is 123

String created is "one.wav, two.wav,three.wav"

 

I am trying to make this function available for any module to use. My aproach is

Build a module, say vbsNumbers that creates the string then use

 

Script_Gosub $RV_LINEID, "", "vbsNumbers", "[numbers]{123}", "", "NextModule"

 

where next module could be anything.

The code above seems to call the vbsNumbers, but then the script terminates instead of proceeding to NextModule

Share this post


Link to post

A have copied the module and use a seperate vbscript module every time I need to say the number, it is not pretty but it works.

 

I am now having problems with the fisrt digit being zero. If I enter a number 02635444444 then both $RV_ENTEREDNUMBER and the $RV[get number molue ] will omit the leading 0. Ie, these values will be 2635444444

 

I have tried to cast them as string, or asign them to values that precviously were strings but no luck.

 

Any help would greatly be appreciated.

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
×