ioctl(ixj, PHONE_HOOKSTATE)
Return Value
Bit 0 is set to 1 if the POTS device is off hook.
Bit 0 is set to 0 if the POTS device is on hook.
Bit 1 is set to 1 if device is an Internet LineJACK set to PORT_PSTN and PSTN_OFF_HOOK has been set.
Parameters
None
Remarks
Used to poll the POTS port for hook state change.
See Also:
Example:
hook = ioctl(ixj, PHONE_HOOKSTATE); while(!hook) { hook = ioctl(ixj, PHONE_HOOKSTATE); } printf("hook state %d\n", hook);
©1996-2001 Quicknet Technologies, Inc.