VoiceGuide IVR Software Main Page
Jump to content

Global Variable - global line usage counters

Recommended Posts

Testing on a E-1 / Dialogic d/300jct system with VG in eval. mode.

Having a number serie of 100 numbers all directed to this E-1. The $RV[DNIS] works fine, but I need to limit the amount of simultanios calls on many of the numbers. (fx. if more than 5 calls on a dnis, linking to a playsoundfile module and then to a hangupcall module) A global counter on each accepted dnis came to my mind. Starting as zero when VG starts, +1 on new call and -1 on hangup. Is the best to read/write the counters (up to 100) via sql in a db, or can you advise it to be done with globals in VG - or a totally different way. I did not really find material on globals reachable from all lines or a way to define these when vg starts.

 

Best regards

Anders Skov - Denmark

Share this post


Link to post

Result Variables are local to the channel on which they are defined.

 

Right now there is no mechanism for defining global system wide variables.

(global RVs will probably be supported very soon however)

Right now you require global variables then you will need to use a database.

 

There are other ways of effectively creating global variables which involves more advanced VB Scripting work (saving info in Registry and/or data files) but just using a database is easiest right now.

Share this post


Link to post

Tks. for the fast support - as allways.

I will go for a external solution with a db. So can I somehow use VG to initialize, fx. a db, on the very start of VG - and only at that point. Just looking for a startscript possibillity without the need of a call in.

 

Anders

Share this post


Link to post

Initializing the external databases will be a bit tricky - VoiceGuide does not call any function/script on application startup... maybe start VG from a batch file and run any initialization routines from there as well?

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
×