swap

Swap one call with another. When a call swap occurs, the participant on hold is resumed and the resumed participant is placed on hold.

Signature 

swap(call1, call2) → Promise.<HoldToggleResult>

Returns: HoldToggleResult — Represents the result when toggling the hold state for a call.

Parameters 

FieldTypeDescription
call1PhoneCallThe first call to swap.
call2PhoneCallThe second call to swap.