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 incoming calls, make outgoing 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 lineOpen function. (Later, when the application is finished with the line device, it can close it with lineClose.)

The lineOpen function can be invoked in one of two ways:

An application that has successfully opened a line device can use it to make an outgoing call except when the line supports only incoming calls.