Skip to content

Incoming and Outgoing Calls

Kesari3008 edited this page Oct 9, 2023 · 32 revisions

Introduction

CallingClient module in Calling SDK provides inbound and outbound call functionality on registered lines. For every call, a call instance is created and then used to dial the call, listen for events. This document covers how we obtain the call instance and use it in inbound/outbound calls.

Call Object

Once the lines are registered, call functionality is available on any of the lines. Use the makeCall method is invoked on a line. For inbound call, when the client receives a call from Webex Calling, a call instance is returned within the payload of an event from the Calling SDK.

The call instance provided by the Calling SDK is of type ICall. A call instance provides a variety of methods to the developer that take specific actions and move the call through various states.

Call Methods

Method Description Returns Visibility
answer Accepts or answers an incoming call from Webex Calling void Public
dial Dials the outgoing call to the destination void Public
end Ends an ongoing call void Public
sendDigit Sends a DTMF digit on an established call void Public
mute Mutes the local track of this call instance void Public
doHoldResume Places the remote end of this call on hold/resume the call based on the current state of the call void Public
completeTransfer Initiates a transfer towards a target (Phase 2) void Public


Clone this wiki locally