TAPI: line identifier change when a new line is added...
TAPI: line identifier change when a new line is added...
(OP)
Hello,
I'm developing a TAPI client. I need make a call through a line. The identifier of this line change when a new line is added in server: example:
(time)
LineID Comment
---------------------
1 Modem 1
2 Modem 2 (this is the line i need use)
3 Network card
(time + 1)
LineID Comment
---------------------
1 Modem 3
2 Modem 1
3 Modem 2 (this is the line i need use)
4 Network card
Is possible identifier the line with a non-variable value??
Can I openLine with that non-variable value?
Thanks
dmb
I'm developing a TAPI client. I need make a call through a line. The identifier of this line change when a new line is added in server: example:
(time)
LineID Comment
---------------------
1 Modem 1
2 Modem 2 (this is the line i need use)
3 Network card
(time + 1)
LineID Comment
---------------------
1 Modem 3
2 Modem 1
3 Modem 2 (this is the line i need use)
4 Network card
Is possible identifier the line with a non-variable value??
Can I openLine with that non-variable value?
Thanks
dmb
RE: TAPI: line identifier change when a new line is added...
When I have used TAPI to do things like this (I don't like TAPI and avoid it at all costs), I use the familiar name of the modem to select it, not an index to its LineID.
If you use the familiar name, then when some adds a second modem of the same brand and model, it calls it #2, etc. Once the software is configured to use a specific modem, then I either write a registry setting or use an INI file to store that device's familiar name.
I normally allow the user to configure the software, but you could hard code it (into a registry setting or INI file) if you are delivering a turn-key system.
pansophic
RE: TAPI: line identifier change when a new line is added...
Thanks a lot!!!!
RE: TAPI: line identifier change when a new line is added...
Looking through the MSDN documentation, I'd say that it is probably located in the MODEMDEVCAPS:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/modemdevcaps_str.asp
Good luck!
pansophic