VoiceGuide IVR Software Main Page
Jump to content

System Configuration

Recommended Posts

Hello,

 

I would like to know if is possible to define configuration parameters externally of the vgs file? Like a xml file.

Examples: path to the return file from programs, database connection string or parameters of the system which must be accessible from the script modules.

 

Thanks.

Share this post


Link to post

Easiest way to do this is to just read in a Result Variables string from some configuration text file and then load that into the RV data associated with the script running on the line.

 

At beginning of the script use a 'Run VBScript' module, and read data from your text file using VBScript. The data in your text file can look something like this:

 

[PathOfReturnInfo]{C:\mydata\whatever\}[DatabseName]{TestDB2}

 

and then call RvSet_RvList COM function to set this data into VG. See:

 

http://www.voiceguide.com/vghelp/source/html/com_rvset_rvlist.htm

 

You can also set global Result Variables in the VG.INI file, in section [scripts] eg:

 

[scripts]

GlobalRV=[PathOfReturnInfo]{C:\mydata\whatever\}[foo]{bar}[DefaultTransferExt]{44563}

 

GlobalRV gets read in only at service restart.

 

Please let us know if you have any more questions.

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
×