lineOpen

Last Updated : Sep 03, 2015 |

This function opens a line device. dwMediaModes function must be set to lineMediaMode_InteractiveVoice for ISDN or T1 and lineMediaMode_Unknown for Analogue trunks. You can specify both to handle calls from both trunk types.

LONG
WINAPI
lineOpen(
HLINEAPP hLineApp,
DWORD dwDeviceID
LPHLINE lphLine,
DWORD dwAPIVersion,
DWORD dwExtVersion,
DWORD dwCallbackInstance,
DWORD dwPrivileges,
DWORD dwMediaModes,
LPLINECALLPARAMS const lpCallParams
);
Note:

If you try to open a line that is associated with a Wave user and if there is no Wave User license installed in IP Office, lineOpen will return Lineerr_Resourceunavail.