Rate this page:

How to manage multiple calls on the client side

Applications built upon Voximplant SDKs can accept new incoming calls during a conversation, but there are some nuances. Learn how to properly handle new calls below.

Further Incoming Calls in the Web SDK

By default, the first call (either inbound or outbound) is active , all other calls are inactive and should be activated via the setActive method. Only an active call sends and receives an audio/video stream.

To activate a new incoming call during a conversation, do the following:

  • make the current call inactive via setActive(false)
  • answer an incoming call
  • make this new call active via setActive(true)

This will put the previously active call on hold, but not hang it up.

Answer an incoming call

Answer an incoming call

Promises

Bear in mind that some of these methods return promises, so handle them appropriately.

Make calls active beforehand

You can change the default behavior by initiating a call with forceActive: true in CallSettings. Thus, you won't need to activate such a call manually via setActive(true).

Further Incoming Calls in the Android/iOS/React Native SDKs

By default, ALL calls are active, that is why the recommended flow slightly differs from the Web SDK.

To activate a new incoming call during a conversation, do the following:

That's it.

Answer an incoming call

Answer an incoming call