Re: conflicting dwPermanentLineID
- From: "Andreas Marschall [MVP TAPI]" <Andreas.Marschall@xxxxxxxxxx>
- Date: Fri, 5 May 2006 17:16:27 +0200
"Eric" <bauersachs@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:c1e62$445b48e9$3e026d5a$25228@xxxxxxxxxxxxxxxxxx
Hi Andreas
Thanks for your answer.
Eric, you are welcome.
Have you got more information about that
recommendation? This is what I was searching for. I cannot find anything on
the internet or on Microsoft's site about this.
Sorry, not by now.
I searched ATSP32 sample TSP but it doesn't fill in dwPermanentLineID at all.
I'm using this mechanism in my TSPs so there must have been a reason / source
for this,
but this basic stuff was implemented a couple of years ago...
I'll keep you updated if there is any news on this.
Maybe Grant remembers something regarding this algorithm?
If the high word was dwPermanentProviderID then of course no other provider
could generate an identical number.
Is dwPermanentProviderID guaranteed to be below 0x10000, i.e. to fit into
the upper WORD of dwPermanentLineID?
Garanteed? No!
But practically: yes.
The dwPermanentProviderID is assigned by the OS/TAPISRV beginning with 1 for
the 1st provider ever installed.
Each new TSP installation (including remove and re-install) will increase this
counter by one.
IDs once assigned will never be re-used.
You can see this in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony\Provide
rs\NextProviderID
So if you don't (re-)install more than 65535 TSPs then the WORD limit won't
exceed.
This recommendation would also mean that my DB-ID must always be below
0x10000
Correct.
, which is currently not the case. But I think I can change this somehow.
You just need a function that maps your DB-ID's range to 0..FFFFh
--
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
TAPI development around the world (Frappr! map):
http://www.frappr.com/TAPIaroundTheWorld
* Please post all messages and replies to the newsgroup 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.
.
- Follow-Ups:
- Re: conflicting dwPermanentLineID
- From: Eric
- Re: conflicting dwPermanentLineID
- References:
- conflicting dwPermanentLineID
- From: Eric
- Re: conflicting dwPermanentLineID
- From: Andreas Marschall [MVP TAPI]
- Re: conflicting dwPermanentLineID
- From: Eric
- conflicting dwPermanentLineID
- Prev by Date: Re: How to create TSP using Visual Studio 2003 or 2005
- Next by Date: Re: Connect with Tapi 2.0 to Alcatel OXO
- Previous by thread: Re: conflicting dwPermanentLineID
- Next by thread: Re: conflicting dwPermanentLineID
- Index(es):
Relevant Pages
|