Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Query regarding to the device ID of line and phone devices

5 views
Skip to first unread message

Mohit

unread,
Dec 22, 2009, 6:24:01 AM12/22/09
to
Hi friends,

I have a query regarding the device ID of the line and phone devices.

When the TSP gets initialized, all lines and phone devices are assigned a
unique device ID.

What my question is, if after TSP initialization some new line and/or phone
devices are added as well as some gets removed and then TAPI shutdowns the
TSP and again initialize the TSP again then will all the previously device ID
to line and phone devices remain as it is or TAPI will reassign new device ID
for each line and phone devices?

Thanks,
Mohit

Andreas Marschall [exMVP TAPI]

unread,
Dec 22, 2009, 10:13:53 AM12/22/09
to
"Mohit" <Mo...@discussions.microsoft.com> schrieb im Newsbeitrag
news:4E18BDE3-A035-4A9B...@microsoft.com...

Mohit,
when TAPISRV (re-)starts it will (re-)call TSPI_providerEnumDevices().
All at this time by TSP reported line/phone devices will get contionous
DeviceID ranges.

The ranges may start/end at differend IDs compared to the ranges from last
instance.
DeviceIDs and theirs ranges may never be seen as permanent - they can change
from TAPISRV instance to instance.

A TSP always has to privide the currently valid over all configuration of
devices at TSPI_providerEnumDevices().
At run-time a TSP may LINE_REMOVE / LINE_CREATE devices as required.
So it is the TSPs task to maintain a valid device configuration and notify
TAPISRV about changes.
TAPISRV will only maintain the DeviceIDs and notify TAPI app about changes.
As said earlier, don't think of DeviceIDs being permanent.

--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
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.

Mohit

unread,
Dec 23, 2009, 12:22:01 AM12/23/09
to
Thanks Andreas for your reply,

I have another query regarding to Device ID.

I had read that after receiving LINE_REMOVE from TSP, TAPI will return error
value LINEERR_NODEVICE if any TAPI application calls function with the Device
ID of removed line device.

Also the Device IDs are maintained by the TAPISRV, so should TSP also
remember the Devce ID of the removed line. I mean, after sending LINE_REMOVE
message to the TAPI, should TSP also clear the Device ID assigned to tath
line device or it should not? because TAPI itself takes care by returning the
error value while any TAPI applciation calls the function having the Device
ID of the removed line.

Thanks,
Mohit

> .
>

Andreas Marschall [exMVP TAPI]

unread,
Dec 23, 2009, 5:16:25 AM12/23/09
to
"Mohit" <Mo...@discussions.microsoft.com> schrieb im Newsbeitrag
news:3230221C-312A-4098...@microsoft.com...

> Thanks Andreas for your reply,

Mohit, you are welocme.

> I have another query regarding to Device ID.
>
> I had read that after receiving LINE_REMOVE from TSP, TAPI will return
> error
> value LINEERR_NODEVICE if any TAPI application calls function with the
> Device
> ID of removed line device.

Yes, that's correct.

> Also the Device IDs are maintained by the TAPISRV, so should TSP also
> remember the Devce ID of the removed line. I mean, after sending
> LINE_REMOVE
> message to the TAPI, should TSP also clear the Device ID assigned to tath
> line device or it should not? because TAPI itself takes care by returning
> the
> error value while any TAPI applciation calls the function having the
> Device
> ID of the removed line.

After TSP sends LINE_REMOVE to TAPISRV,
TAPISRV will call TSPI_lineCloseCall() and TSPI_lineClose() as required.
After the line has been closed the TSP can remove its internal data for this
removed device.

0 new messages