Home > @gnaudio/jabra-js > ICallControl > takeCallLock
#
ICallControl.takeCallLock() methodTries to acquire a call lock. The call lock is a unique, per-device lock, and is required in order to change the state of the device.
Acquiring the call lock should always be the first step in performing call control operations.
Signature:Promise<boolean>
A Promise that resolves with true
if the call lock is successfully acquired, false
otherwise.
#
ExceptionsIf you have already call locked the device.
#
RemarksAcquiring a call lock can fail. This can happen due to multiple reasons: - The device is call locked by another softphone that is using the Jabra SDK. This will result in false
being returned. - The device is call locked by another instance of your softphone implementation. This will result in false
being returned - You've already call locked the device (and therefore can proceed with any other functionality that requires the call lock). This will result in an Exception being thrown.