VoiceGuide IVR Software Main Page
Jump to content

My Own Line Status Monitor

Recommended Posts

As a part of my application I need a small Line status monitor to show whats happening on each line.

I can loop through the RvGet(LINEID 's and get the $RV_PORTNUMBER to find out while Line matches to which LINEID,

But how many LINEID's are there? I mean if I loop "FOR I = 1 TO ...." through all of the lines.

Where can I get this upper limit from?

Thanks!

Also - is there a more efficient way to get the $RV_STATUSDISPLAYED, or any other $RV[] for each "Port" ?

Share this post


Link to post

You would probably just stop looping until you have retrieve the expected number of ports.

The expected number of ports would be however many are specified to be opened up in the Config.xml file.

 

The WCF interface lets you use the PortNumber instead of the LineID to access the ports details. Then you can just cycle through the number of ports that you know are on the system.

 

The WCF interface also has a function that allows you to get all port state details in one call. The VoiceGuide Line Status Monitor uses WCF to get that information from the VoiceGuide service in one call.

Open the WCF interface demo project supplied with VoiceGuide and you will be able to see the functions supported through WCF (even just using IntelliSense).

Share this post


Link to post

Use the IPortStatus WCF interface, and call function State_ForDisplay(), supplying -1 as the port number.

 

This will return a list of clsPortStatusForDisplay classes.

 

The interfaces and data types are all in the vgServicesInterfaces namespace. Just reference vgServicesInterfaces.dll in your project.

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
×