|
|
|
02.06.2008 07:58 |
Mart |
Hi
under SIP (RFC 3856) a scheme exists by which it is possible to tell from a central repository on a telephone network what the presence state of any given telephone is (e.g. available, busy, do not disturb etc). This is useful information for a console attendant application to know before call transfers are attempted.
Short of using a TSP against every telephone on a network is there a way to achieve this under TAPI?
Thanks in advance Mart
|
 |
|
|
|
|
02.06.2008 16:10 |
Andreas Marschall [MVP TAPI] |
"Mart" schrieb im Newsbeitrag news:u6wAU4HxIHA.5620@TK2MSFTNGP04.phx.gbl... > under SIP (RFC 3856) a scheme exists by which it is possible to tell from a > central repository on a telephone network what the presence state of any > given telephone is (e.g. available, busy, do not disturb etc). This is > useful information for a console attendant application to know before call > transfers are attempted. > > Short of using a TSP against every telephone on a network is there a way to > achieve this under TAPI?
Mart, with TAPI you need to monitor (lineOpen() with LINECALLPRIVILEGE_MONITOR) each device that you are interested in. A 3rd party TSP is required to get the stati of multiple devices of a PBX.
-- 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.
|
 |
|
|
|
|
02.06.2008 15:50 |
Mart |
Andreas,
Many thanks for your reply.
regards Mart
"Andreas Marschall [MVP TAPI]" wrote in message news:OVKEmpLxIHA.2064@TK2MSFTNGP05.phx.gbl... > "Mart" schrieb im Newsbeitrag > news:u6wAU4HxIHA.5620@TK2MSFTNGP04.phx.gbl... >> under SIP (RFC 3856) a scheme exists by which it is possible to tell from >> a >> central repository on a telephone network what the presence state of any >> given telephone is (e.g. available, busy, do not disturb etc). This is >> useful information for a console attendant application to know before >> call >> transfers are attempted. >> >> Short of using a TSP against every telephone on a network is there a way >> to >> achieve this under TAPI? > > Mart, > with TAPI you need to monitor (lineOpen() with LINECALLPRIVILEGE_MONITOR) > each > device that you are interested in. > A 3rd party TSP is required to get the stati of multiple devices of a PBX. > > -- > 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. > > >
|
 |
|
|
|
|
02.06.2008 16:54 |
Andreas Marschall [MVP TAPI] |
"Mart" schrieb im Newsbeitrag news:OejhTAMxIHA.4952@TK2MSFTNGP05.phx.gbl... > Andreas, > > Many thanks for your reply.
Mart, you are welcome.
-- 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.
|
 |
|
|
|
|
03.06.2008 07:01 |
Mart |
Hi Andreas
calling lineOpen does not in itself return the state of the phone, presumably I would need to wait for an change of state and note the device state event? Or is there a TAPI method I can call?
Looking a little closer, I note that with Cisco Call Manager the way the TSP is organised only a small number of devices are are usually configured (i.e. usually those which an operator would be using, so around a maximum of 10). As I understand it, this means that using the lineOpen suggestion it would only be possible to monitor those few devices. Is there any mechanism under TAPI which would allow the status of a telephone on the network which is not confgured against a TSP, to be recovered. Registering thousands of TSPs instances (one per corporate telephone) is not going to be practical.
Thoughts please. Thanks regards Mart
"Andreas Marschall [MVP TAPI]" wrote in message news:OVKEmpLxIHA.2064@TK2MSFTNGP05.phx.gbl... > "Mart" schrieb im Newsbeitrag > news:u6wAU4HxIHA.5620@TK2MSFTNGP04.phx.gbl... >> under SIP (RFC 3856) a scheme exists by which it is possible to tell from >> a >> central repository on a telephone network what the presence state of any >> given telephone is (e.g. available, busy, do not disturb etc). This is >> useful information for a console attendant application to know before >> call >> transfers are attempted. >> >> Short of using a TSP against every telephone on a network is there a way >> to >> achieve this under TAPI? > > Mart, > with TAPI you need to monitor (lineOpen() with LINECALLPRIVILEGE_MONITOR) > each > device that you are interested in. > A 3rd party TSP is required to get the stati of multiple devices of a PBX. > > -- > 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. > > >
|
 |
|
|
|
|
03.06.2008 16:45 |
Andreas Marschall [MVP TAPI] |
"Mart" schrieb im Newsbeitrag news:uJDaF9TxIHA.4952@TK2MSFTNGP05.phx.gbl... > calling lineOpen does not in itself return the state of the phone, > presumably I would need to wait for an change of state and note the device > state event? Or is there a TAPI method I can call?
Mart, lineOpen() starts monitoring. Depending on the TSP you will get initial state messages (e.g. of a call currently being active). In any case you will get messages on new call that occur after monitoring has started. You can enabale additional messages via lineSetStatusMessages().
Try it with TAPI Browser TB20 before starting to code anything yourself. See my TAPI and TSPI FAQ:
Q: Where can I download TAPI Browser ? http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Where_can
Q: Is there a user guide available for TAPI Browser TB20 ? http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_Is_there_1
> Looking a little closer, I note that with Cisco Call Manager the way the TSP > is organised only a small number of devices are are usually configured (i.e. > usually those which an operator would be using, so around a maximum of 10). > As I understand it, this means that using the lineOpen suggestion it would > only be possible to monitor those few devices.
Exactly, each device has to be lineOpen()ed with it own dwDeviceID.
> Is there any mechanism under > TAPI which would allow the status of a telephone on the network which is not > confgured against a TSP, to be recovered.
No.
> Registering thousands of TSPs > instances (one per corporate telephone) is not going to be practical.
What's your exact scenario? Do you have thousands of client PC on the corporate LAN (each with an associated telephone)? And do you want to be able to get the status of all phones at all PCs? Then you would like to use the MS TAPI client / server architecture. You only need one 3rd party TSP (for your PBX) running on a Telephony Server. All client PC become Telephony Clients and have access to the TAPI devices that are assigned to them. See my TAPI and TSPI FAQ: Q: What is the Microsoft® TAPI client / server architecture ? http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_What_is_10
-- 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.
|
 |
|
|
|
|
04.06.2008 08:02 |
Mart |
Hi Andreas,
>> Registering thousands of TSPs >> instances (one per corporate telephone) is not going to be practical. > > What's your exact scenario? > Do you have thousands of client PC on the corporate LAN (each with an > associated telephone)? > And do you want to be able to get the status of all phones at all PCs? > Then you would like to use the MS TAPI client / server architecture. > You only need one 3rd party TSP (for your PBX) running on a Telephony > Server. > All client PC become Telephony Clients and have access to the TAPI devices > that are assigned to them.
That's interesting. The problem is that we cannot guarantee that every phone is associated with a computer. Also, some computers might effectively be associated with more than one phone.
Thanks for your suggestions anyway. regards Mart
|
 |
|
|
|
|
05.06.2008 19:09 |
Andreas Marschall [MVP TAPI] |
"Mart" schrieb im Newsbeitrag news:%23MWMIEhxIHA.3968@TK2MSFTNGP04.phx.gbl... > > What's your exact scenario? > > Do you have thousands of client PC on the corporate LAN (each with an > > associated telephone)? > > And do you want to be able to get the status of all phones at all PCs? > > Then you would like to use the MS TAPI client / server architecture. > > You only need one 3rd party TSP (for your PBX) running on a Telephony > > Server. > > All client PC become Telephony Clients and have access to the TAPI devices > > that are assigned to them. > > That's interesting. The problem is that we cannot guarantee that every phone > is associated with a computer. Also, some computers might effectively be > associated with more than one phone. > > Thanks for your suggestions anyway.
Mart, you are welcome.
Please note that you do not need a 1:1 reltion between phone and PC/user. This would only be the most common configuration. Sorry if this was misleading
Actually you can assign any TAPI device (driven by the TSP on the telephony server) to any user (telephony client PC) on the network. You can assign multiple TAPI devices to the same user. You can assign the same TAPI device to multiple users.
-- 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.
|
 |
|
|
|
|
09.06.2008 17:36 |
Matthias Moetje [MVP] |
Mart,
the truth is that TAPI does not really support presence information like it is used in IM or other SIP applications.
The only states you can get are:
- ITAddress::State (AS_INSERVICE or AS_OUTOFSERVICE) - ITAddress::DoNotDisturb (True or False) - ITAddress::MessageWaiting (True or False)
Best regards,
Matthias Moetje ------------------------------------- TAPI WIKI: http://www.tapi.info ------------------------------------- TERASENS GmbH Augustenstraße 24 80333 Munich, GERMANY ------------------------------------- e-mail: moetje at terasens dot com www: www.terasens.com -------------------------------------
"Mart" wrote in message news:u6wAU4HxIHA.5620@TK2MSFTNGP04.phx.gbl... > Hi > > under SIP (RFC 3856) a scheme exists by which it is possible to tell from > a central repository on a telephone network what the presence state of any > given telephone is (e.g. available, busy, do not disturb etc). This is > useful information for a console attendant application to know before call > transfers are attempted. > > Short of using a TSP against every telephone on a network is there a way > to achieve this under TAPI? > > Thanks in advance > Mart >
|
 |
|