Guest jdiegjdieg Report post Posted 09/10/2009 07:46 PM 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
SupportTeam Report post Posted 09/10/2009 08:23 PM 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
SupportTeam Report post Posted 09/11/2009 04:22 AM 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