IMultiCallControl.acceptIncomingCall() method

Accepts an incoming call and sets the device into call state.

Signature

acceptIncomingCall(behavior?: AcceptIncomingCallBehavior): Promise<void>;

Parameters

Parameter Type Description
behavior AcceptIncomingCallBehavior Optional: controls the behavior when accepting an incoming call, defaults to END_CURRENT.

Returns

Promise<void>

Exceptions

If an incoming call is not pending.

Remarks

Accepting an incoming call behaves differently whether called from idle or while another call is active.

  1. From idle: the device is simply set into call state and the call counter is increased by one.
  2. While another call is active: depends on the behavior parameter. It can either be to end the current call and start a new call (default), or hold the current call and start a new call.