\Aculab\WebServicesWrapperCallDataRecord

Represents a call data record

Summary

Methods
Properties
Constants
getDirection()
getChannelType()
getOriginatingAddress()
getDestinationAddress()
getDuration()
getCallInitiatedTime()
getCallConnectedTime()
getCallHangupTime()
getHangupCause()
getJoinedDuration()
getCallCost()
getCostsValid()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getDirection()

getDirection() : string

Get the direction of the call.

Returns

string —

Either "in", "out" or "client".

getChannelType()

getChannelType() : string

Get the channel type.

Returns

string —

"p" for a primary call channel, "x" for an extra channel, "ca" for client to client without video, "cv" for client to client with video.

getOriginatingAddress()

getOriginatingAddress() : string

Get the address from which the call was made.

Returns

string

getDestinationAddress()

getDestinationAddress() : string

Get the target destination of the call.

Returns

string

getDuration()

getDuration() : float

Get the duration of the call.

Returns

float —

The duration of the call in seconds.

getCallInitiatedTime()

getCallInitiatedTime() : \DateTime

Get the time at which the call was placed.

Returns

\DateTime

getCallConnectedTime()

getCallConnectedTime() : \DateTime|null

Get the time at which the call became connected.

Returns

\DateTime|null

getCallHangupTime()

getCallHangupTime() : \DateTime

Get the time at which the call was hung up.

Returns

\DateTime

getHangupCause()

getHangupCause() : string

Get the reason why the call was disconnected.

Returns

string

getJoinedDuration()

getJoinedDuration() : float

Get the joined duration.

Returns

float —

The duration in seconds for which the call was joined (connected or transferred) to another call.

getCallCost()

getCallCost() : float

Get the cost of the calls.

Returns

float

getCostsValid()

getCostsValid() : boolean

Determine if the costs provided are valid.

Returns

boolean