Rate this page:

CallManager

Methods

addEventListener

Copy URL
addEventListener(eventName: 

CallManagerEvent.IncomingCall

,
listener:

(event: CallManagerIncomingCall) => void | Promise<void>

,
options:

ListenerOptions

):

void

Registers a handler for the specified event.

One event can have more than one handler; handlers are executed in order of their registration.

Parameters

Returns

  • type:

    void

createCall

Copy URL
createCall(destination: 

string

,
settings:

CallSettings

):

Call

Creates a new call instance.

The call should be started via the Call.start method.

Parameters

  • destination:

    string

    SIP URI, username or phone number to make call to. Actual routing is then performed by a VoxEngine scenario

  • settings:

    CallSettings

    Optional

    Call settings with additional call parameters, such as the preferred video codec, custom data, extra headers, etc.

Returns

Throws

RequiredParameterError if the destination parameter is undefined or an empty string

getCalls

Copy URL
getCalls(): 

Map<string, Call>

Returns a map of actual calls with their ids.

Returns

  • type:

    Map<string, Call>

removeEventListener

Copy URL
removeEventListener(eventName: 

CallManagerEvent.IncomingCall

,
listener:

(event: CallManagerIncomingCall) => void | Promise<void>

):

void

Removes a previously registered handler for the specified event.

Parameters

Returns

  • type:

    void

transferCall

Copy URL
transferCall(call1Id: 

string

,
call2Id:

string

):

Promise<void>

Transfers a call.

Returns a promise that is resolved when the call transfer is completed successfully.

Throws:

Parameters

  • call1Id:

    string

    Call to transfer

  • call2Id:

    string

    Destination call where the call1 needs to be transferred

Returns

  • type:

    Promise<void>