Skip to main content

Home > @gnaudio/jabra-js > ICallControl > offHook

ICallControl.offHook() method#

Informs the Jabra device that there's a change in the call status.

Signature:
offHook(isOffHook: boolean): void;

Parameters#

ParameterTypeDescription
isOffHookbooleanThe new offHook status of the device. Use true when a call becomes active, regardless of call type (outgoing or incoming). Use false when a call has ended and the device is no longer used.
Returns:

void

Exceptions#

If a call lock was not acquired prior to execution. See ICallControl.takeCallLock() for more details.

Remarks#

This controls if the device considers itself in an active call. When offHook is true, a call is ongoing, otherwise there is no active call.