|
Opening Lines
After having obtained the capabilities of a line, an application must open the
line device before it can access telephony functions on that line. (Because a line device is an abstraction of a line as defined by Telephony, opening a line and opening a line device can be used interchangeably.) When a line device has been opened successfully,
the application receives a handle for it. The application can then use that
line to take inbound calls, make outbound calls, or monitor call activities on
the line for logging purposes.
To open a line device for any purpose monitoring or control the application calls the function lineOpen. (Later, when the application is finished with the line device, it can close
it with lineClose.)
The function lineOpen can be invoked in one of two ways:
- A specific line device is selected by means of its line-device ID (the parameter dwDeviceID). The lineOpen request will open the specified line device. Applications interested in
handling inbound calls typically use specific line devices because the application
has been notified which line is carrying or is expected to carry the inbound
call. When a line device has been opened successfully, the application is returned
a handle representing the open line.
- The application can specify that it wants to use any line device that has certain properties. In this case, the application uses
the value LINEMAPPER instead of a specific line-device ID as a parameter for lineOpen. The application also specifies which properties it needs on the call in
parameters to lineOpen. The function opens any available line device that supports the specified
call parameters. This attempt, of course, may fail. If successful, the caller can
determine the line-device ID by calling lineGetID, specifying the handle (lphLine) to the open line device returned by lineOpen.
An application that has successfully opened a line device can use it to make
an outbound call except when the line supports only inbound calls.
| 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
|