Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TAPI: line identifier change when a new line is added...

Status
Not open for further replies.

diembi

Programmer
Sep 22, 2001
238
ES
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
 
dmb,

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
 
Ok, that solution is my current solution. I would like get the lineId using the familiar name. There are any TAPI method to obtain that? Ex: lineId = unknownMethod(FamilarNameDevice).

Thanks a lot!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top