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 purposepics/TAPI00090000.gifmonitoring or controlpics/TAPI00090000.gifthe 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.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database