LINEStatus

Purpose

This function returns the status of a call. This call can be used in a script to determine if the call is ended. If the status is LINE_IDLE, there is no call, and the script should exit immediately.

Parameters

Parameter: Line
Type: Integer
Description: The phone line to access.

Returns

Return value: Code
Type: String
Description: One of the following codes:

LINE_IDLE      = 0      ' waiting for call
LINE_OFFERING  = 1      ' incoming call before first ring
LINE_RINGING   = 2      ' incoming call
LINE_CONNECTED = 3      ' line is active and connected to remote party
LINE_INACTIVE  = 4      ' not waiting for call, maybe no modem selected on line
LINE_BUSY      = 5      ' line busy
LINE_INUSE     = 6      ' line is in use
LINE_TIMEOUT   = 7      ' for calling, no answer
LINE_ERROR     = 8      ' line error event
LINE_DIALING   = 9      ' dialing out in progress
LINE_REORDER   = 10     ' fast busy, Hi-Phone only