Class: ReceivedCallInvitation

ReceivedCallInvitation

ReceivedCallInvitation

Defines an invitation received by this client for a call


new ReceivedCallInvitation()

Fires:

Extends

Methods


<static> getAvailableEvents()

Returns available events for this class

Returns:
Type
Array.<string>

accept(stream, options)

Accepts this invitation & notifies sender, returns Call object through Promise

Parameters:
Name Type Description
stream Stream

Optional, if set, the stream will be published for this call

options AnswerOptions
Overrides:
Returns:

accepted call in promise

Type
Promise.<Call>

decline()

Declines the call invitation & notifies sender

Overrides:
Returns:
Type
Void

getCall()

Returns associated conversation

Returns:
Type
Call

getCallType()

Returns call type

Returns:
Type
String

getId()

Returns invitation id

Inherited From:
Returns:
Type
string

getReceiveTime()

Returns invitation receive time

Inherited From:
Returns:
Type
Date

getSender()

Returns invitation / request sender

Inherited From:
Returns:
Type
Contact

isRecorded()

Returns whether call is recorded or not

Returns:
Type
boolean

Events


expired

Fired when the call invitation has expired (eg. caller cancelled call)

Type: Void
Deprecated:
  • Please note that this event is now deprecated as we have added a statusChange event

statusChange

Emitted invitation status change

Type: StatusChangeInfo
Inherited From: