Rejects an incoming call.
The call can be rejected by the user by interacting with their device
or with your softphone.
In the first case, the incoming call will be automatically rejected
and IEasyCallControlBase.signalIncomingCall will resolve with false
.
The second case requires your softphone to manually call this method,
before the incoming call is rejected and IEasyCallControlBase.signalIncomingCall is
resolved with false
.
Signals that there is an incoming call. The promise resolves only once the incoming call is either accepted or rejected.
Optional
ringTimeout: numberOptional parameter, determining how long before the incoming call is automatically rejected due to a timeout.
true
if the call was accepted, and false
if rejected.
Teardown the Easy Call Control instance.
All internal state subscriptions will be stopped to avoid potential memory leaks, and the internal call lock will be released if taken.
After using this method, you must create a new Easy Call Control instance to continue usage.
Use this when you want to stop using the ISingleCallControl or IMultiCallControl object but the connection to the device is still active (e.g. when changing device or navigating between views).
Readonly
deviceThe single physical device to which the easy call control functionalities are associated to.
Emits the mute state of the device whenever that state changes.
Readonly
onEmits when the connection used for easy call control gets disconnected.
If this observable emits, the connection and thus the Easy Call Control instance can no longer be used.
If this happens, for example, in the middle of a call, you can select a new device (or the same device with another connection) and recover the state. See ISingleInitialState or IMultiInitialState and for examples refer to the 'Easy Call Control' chapter of the 'Managing Calls' section of the JavaScript Developer's Guide.
Emits the ring state of the device whenever that state changes.
Base interface containing APIs shared between ISingleCallControl and IMultiCallControl.