|
Requesting Call Privileges
In addition to media mode, an application can specify the call privileges it wants for the calls provided to it. With privileges, an application
specifies whether it wants to monitor calls or own them. For an inbound call, only
one application is selected as the owner, although all applications with monitor
interest in the call are also notified about the incoming call. The usual
privileges an application specifies are summarized in the following list:
- If the application only wants to monitor calls, it specifies
LINECALLPRIVILEGE_MONITOR. The application will also receive monitor handles to outgoing calls
placed by other applications (an application receives owner handles for outgoing
calls it places itself). It will also receive MONITOR handles for calls it
places itself on other instances of the same line.
- If the application wants to make outbound calls only, it specifies
LINECALLPRIVILEGE_NONE. An application that has NONE selected will not be automatically
informed of incoming calls. However, it can also become aware of calls on the
line with LINE_ADDRESSSTATE(numCalls) or LINE_LINEDEVSTATE(numCalls) messages. It can then call lineGetNewCalls..
- If the application wants to accept incoming calls of a specific media mode (or
modes), it specifies LINECALLPRIVILEGE_OWNER and one or more relevant
LINEMEDIAMODE_ settings.
- If the application is willing to control unclassified calls (incoming calls of
as-yet unknown media mode), it specifies LINECALLPRIVILEGE_OWNER and
LINEMEDIAMODE_UNKNOWN.
- In other cases, the application should specify the media mode it is interested
in handling and set dwPrivilege to LINECALLPRIVILEGE_OWNER.
An application that wants to be informed of all calls on the line regardless
of whether it can become an owner on the call can set both the
LINECALLPRIVILEGE_OWNER and LINECALLPRIVILEGE_MONITOR bits. It will get call handles with owner
privileges for incoming calls for which it is the highest priority application
for the highest priority media mode on the call, and monitor privileges for all
other incoming and outgoing calls.
An application that has successfully opened a line device can always initiate
calls using lineMakeCall, lineUnpark, linePickup, lineSetupConference (with a NULL hCall parameter), as well as use lineForward (assuming that doing so is allowed by the device capabilities, line state,
and so on).
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|