Discussion:
Is there a function in TAPI to get the device type?
(too old to reply)
Angus
2014-10-08 10:10:28 UTC
Permalink
I had a look in lineGetDevCaps and even lineGetAddressCaps but didn't see anything. Is this something that is generally not exposed in TAPI?

If a user selects for example a device to lineOpen I would like to know what type of device it is. Eg a station, ACD queue, hunt group, trunk.

Is there a way to distinguish?
Ravi Kansangara
2014-10-09 05:34:50 UTC
Permalink
Post by Angus
I had a look in lineGetDevCaps and even lineGetAddressCaps but didn't see anything. Is this something that is generally not exposed in TAPI?
If a user selects for example a device to lineOpen I would like to know what type of device it is. Eg a station, ACD queue, hunt group, trunk.
Is there a way to distinguish?
Hi Angus,

As per my opinion, in TAPI environment all lines, phones, trunks etc. are treated as "Device".

You can get the Device Type from the "Device Class" information filled in LINEDEVCAPS structure, that distinguish the device type at top level.

Normally Line naming conventions OR Line address number is used to differentiate the different types of TAPI lines. For which you have to see into TSP which you are using.

For other details you can also use DevSpecific feature of TAPI in which you can get detailed(proprietary) device information that is not included in TAPI functions. For this DevSpecific features must be provided by your TSP provider.

Best Regards,
Ravi Kansangara
Andreas Marschall [exMVP TAPI]
2014-10-09 16:30:04 UTC
Permalink
Post by Angus
I had a look in lineGetDevCaps and even lineGetAddressCaps but didn't see anything. Is this something that is generally not exposed in TAPI?
If a user selects for example a device to lineOpen I would like to know what type of device it is. Eg a station, ACD queue, hunt group, trunk.
Is there a way to distinguish?
Angus,
you may want to take a closer look at the LINEADDRCAPFLAGS_ Constants used in LINEADDRESSCAPS.dwAddrCapFlags
Here are some values of interest:
LINEADDRCAPFLAGS_ACDGROUP
LINEADDRCAPFLAGS_NOEXTERNALCALLS
LINEADDRCAPFLAGS_NOINTERNALCALLS
LINEADDRCAPFLAGS_QUEUE
LINEADDRCAPFLAGS_ROUTEPOINT
--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My Toto® Tools (a collection of free, mostly TAPI related tools):
http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
* Please post all messages and replies to the group so all may
* benefit from the discussion. Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no rights.
Loading...