Class: Call

WTAPI.TelephonyPlugin.Call()

new Call()

Source:

Methods

getCalleeName() → {string}

Returns the full name of the other participant. Can be empty string when name is not available.
Source:
Returns:
Type
string

getCalleeNumber() → {string}

Returns the phone number of the other participant.
Source:
Returns:
Type
string

getChannel() → {string}

Returns a channel of call
Source:
Returns:
Type
string

getDestinationChannel() → {string}

Returns a destination channel of call
Source:
Returns:
Type
string

getDuration() → {int}

Returns a duration of call in seconds.
Source:
Returns:
Type
int

getFormattedCalleeName() → {string}

Returns a participant name in format "NAME (NUMBER)" or "NUMBER" when name is not available.
Source:
Returns:
Type
string

getFormattedDuration() → {string}

Returns a duration in "MM:SS" format.
Source:
Returns:
Type
string

getFormattedState() → {string}

Returns the human-readable state of a call. Possible returns values are: Ringing, Paused, Connected.
Source:
Returns:
Type
string

getHangupCause() → {string}

Returns a hangup cause of a call.
Source:
Returns:
Type
string

getHangupCauseText() → {string}

Returns a hangup cause text of a call.
Source:
Returns:
Type
string

getRecordedFiles(successCallback, errorCallback)

Get a list of records files
Parameters:
Name Type Description
successCallback function
errorCallback function
Source:

getState() → {string}

Returns a state of a call. Possible states are: ring, hold, up. ring - when call is not answered. hold - when call is on hold. up - when call is answered and not on a hold.
Source:
Returns:
Type
string

getType() → {string}

Returns a type of call
Source:
Returns:
Type
string

isIncoming() → {boolean}

Returns true if this call is incoming.
Source:
Returns:
Type
boolean

isOnHold() → {boolean}

Returns true if this call are on hold.
Source:
Returns:
Type
boolean

isOutgoing() → {boolean}

Returns true if this call is outgoing.
Source:
Returns:
Type
boolean

isRecorded() → {boolean}

Returns true if this call are recorded.
Source:
Returns:
Type
boolean

isRinging() → {boolean}

Returns true if this call are in "ring" state (not answered yet).
Source:
Returns:
Type
boolean