VoiceGuide IVR Software Main Page
Jump to content

Distribute Responces Amoung Vm Boxes

Recommended Posts

I am trying to set up what seemed to be a simplistic function: Count the calls on any line in which the person pressed (in this case) 1 and then send the caller to a voicemail based on that count in a round robin fashion such that each representative would get a call in a simple next in line fashion

 

This part of the code was stolen almost verbatim from the help file:

Module type Fx named Count has function $RV("Counter") + 1 in which Counter is made a RV Global variable. As I did not want the variable to be reset to 0 each time a call was handled so I did not use the code example of setting Counter to 0 but intead used the Quotes which the help file recommended for uninitialised variables.

 

That is I'd hoped the function would in effect do this:

$RV(Counter) = $RV(Counter) + 1

 

The path then goes to this Fx module called WhichBox:

 

The function is $RV("Counter") mod 4

The path is:

 

on {0} goto [Voicemail Box 0001]

on {1} goto [Voicemail Box 0002]

on {2} goto [Voicemail Box 0003]

on {3} goto [Voicemail Box 0004]

 

I also tried $RV(Count) mod 4 thinking that the RV returned from module count would work within the module as the only global that I needed was the simple count.

 

The end result is that it just does not work.

 

The user is always sent to a failsafe box which I added after the above code did not work until I could figure out why this did not work.

 

The main problem that I see is that Counter is never initialsed and I see no way to do so. Otherwise unless I am just missing it this should work.

 

The logic was:

Count the times 1 is pressed

use MOD 4 so that a number between 0 and 3 is returned

go to a VM box based on that number.

 

Any ideas as to why this does not work, is there a simpler way to do this?

Share this post


Link to post

You should be using square brackets instead of round brackets.

 

It's $RV[Counter] instead of $RV(Counter)

 

If you are still having problems please post your script, and the trace capturing the calls.

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
×