LVCA_CheckLineState

Use this function to check if a Line is currently on-hook or off-hook.

LVCA_API BOOL WINAPI LVCA_CheckLineState(LONG LineNumber, LONG * State);

Return Value:

If successful, LVCA_CheckLineState returns true.  If false is returned, call LVCA_GetLastCallError to retrieve the error code and message.

Supported on Events:

ANY

Params:

LONG LineNumber (IN) Line Number to check.

LONG * State (OUT) This LONG is filled with the current line state: CLS_ONHOOK or CLS_OFFHOOK.

Notes:

Use this function when you wish check if a line is available for out-dialing.


Complete Help Topic List | Speech Platform Product Information