TAPI - Opening a line deviceΒΆ
lineOpen() |
Opening a line device |
SYNTAX
lineOpen(DeviceID, CallbackInstance, Privileges, MediaModes)
This function opens the line device specified by its device identifier. A line handle for the corresponding opened line device is stored within Sculptor. This line handle is used in subsequent operations on the line device.
DeviceID |
Integer containing number of the line device to be opened. |
CallbackInstance |
Integer containing user-instance data passed back to the application with each message associated with this line or with addresses or calls on this line. This parameter is not interpreted by the Telephony API. |
Privileges |
Integer containing the privilege the application wants when notified of a call. |
MediaModes |
Integer containing the media type or modes of interest to the application. This parameter is used to register the application as a potential target for incoming call and call handoff for the specified media type. |
EXAMPLE
tmp.RC = lineOpen(tmp.Dev, tmp.Dev + 1, \
LINECALLPRIVILEGE_OWNER | LINECALLPRIVILEGE_MONITOR, LINEMEDIAMODE_DATAMODEM)
RELATED TOPICS |