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);
If successful, LVCA_CheckLineState returns true. If false is returned, call LVCA_GetLastCallError to retrieve the error code and message.
ANY
LONG LineNumber (IN) Line Number to check.
LONG * State (OUT) This LONG is filled with the current line state: CLS_ONHOOK or CLS_OFFHOOK.
Use this function when you wish check if a line is available for out-dialing.
Complete Help Topic List | Speech Platform Product Information