Line Sub-session Tutorial

A phone can have one or more lines. Similarly to the phone, Clients can access the status and capabilities of a line, and can be notified if these change.

The line interface is provided by RLine class.

This section describes the Line sub-session functions and how they are used.

Function Description

OpenNewCall()

Call this function to create a new call session. The call can be created in a server, phone or a line sub-session.

OpenExistingCall()

Call this function to open an existing call.

GetStatus()

Call this function to get the status of a call sub-session.

GetCaps()

Call this function to get the capabilities of a call sub-session.

NotifyCapsChange()

Call this function to receive notification of capability changes.

NotifyCapsChangeCancel()

Call this function to cancel an earlier request.

GetBearerServiceInfo()

Call this function to get the bearer information of an active call.

GetInfo()

Call this function to get the information of the current call sub-session.

NotifyHookChange()

Call this function to receive information about a hook associated with the call sub-session.

NotifyHookChangeCancel()

Call this function to cancel an earlier request.

NotifyStatusChange()

Call this function to get the information about the status changes of a call sub-session.

NotifyStatusChangeCancel()

Call this function to cancel an earlier request.

GetCallDuration()

Call this function to get the information about a call duration.

Dial()

Call this function to establish a connection to a specified number, call the function with telephone number.

Connect()

Call this function to establish a connection to a remote modem, call the function specifying the address of the remote modem.

AnswerIncomingCall()

Call this function to answer an incoming call.

HangUp()

Call this function to terminate a call connection.

LoanDataPort()

Call this function to gain control of a serial modem. To return the port conection of the serial communication, call the RecoverDataPort() function.

TransferOwnership()

Call this function to transfer the ownership of a call to another client.

The other client must call AcquireOwenership() function.

GetOwnershipStatus()

Call this function to get the ownership information of a call sub-session.

GetCallParams()

Call this function to find out the parameters associated with the current call sub-session.

GetFaxSettings()

Call this function to get the fax settings of a call sub-session. To set the fax settings call the SetFaxSettings() function.