CallEvent
Notification Object
↪ CallEvent
Notification object for the following call events:
Name | Notes |
---|---|
newCallEvent |
For new calls (Only Admin) |
callConnectedEvent |
For calls that are connected (Only Admin) |
callHungUpEvent |
For calls that are hungup (Only Admin) |
missedCallEvent |
For missed calls |
channelHungUpEvent |
For channels that are hung up. The call is not hungup, only the channel. Can be used to notify a user that their channel is hungup (when someone else has picked up the call or when line hunting). Only caller or callee information is filled because to other side of the channel is gone. (Only Admin) |
How to process
Call events are sended for calls that are new, connected, hungup or missed.
The missed call event can be used to show a missed call notification to an end user
The other call events are best used by third party applications that are interisted in these events.
Only administrators can receive these type of events, it’s recommended to open one websocket connection that listens to these events and process them in this third party application.
Attendant transfer call events
When a call is answered between Customer and UserA and UserA calls UserB and UserA transfers the Customer call to UserB,
3 hungup events are generated for the calls that are hung up (Cusomter → A, A →B and A → B again).
The hungup event of A → B is sended 2 times, keep this in mind when implementing this event.
The callId is the same, so it is needed to compare the callId.
-
Customer C calls User A
-
User A calls User B
-
User A transfer Customer C call to User B
-
Hangup event for call Customer C → User A
-
Hangup event for call User A → User B (same callId)
-
Hangup event for call User A → User B (same callId)
-
Call ended between Customer C and User B
-
Hangup event for call Customer C → User B
Fields
Name | Type | Notes | |
---|---|---|---|
initiation |
How is the call initiated |
||
date |
|
notNull |
The date on which the call was initiated |
callId |
|
notNull |
The unique id that identifies this call |
calleeFlowId |
|
notNull |
The callee flow id follows the flow of the call and is the same during the whole call flow (transfer, fall back, etc) |
calleeUser |
|
The callee user profile object id |
|
calleeUserAddressable |
|
the callee user profile addressable object id |
|
calleePhoneNumber |
|
The callee phone number |
|
calleeAddressable |
|
The callee addressable object id |
|
calleeAddressableSyncId |
|
The callee addressable sync id |
|
calleeAddressableSyncSource |
|
The callee addressable sync source |
|
calleeCallLogOid |
|
The callee call log object id |
|
calleePhoneLineOid |
|
The callee phone line object id |
|
callerFlowId |
|
notNull |
The caller flow id follows the flow of the call and is the same during the whole call flow (transfer, fall back, etc) |
callerUser |
|
the caller user profile object id |
|
callerUserAddressable |
|
The caller user profile addressable object id |
|
callerPhoneNumber |
|
The caller phone number |
|
callerAddressable |
|
The caller addressable object id |
|
callerAddressableSyncId |
|
The caller addressable sync id |
|
callerAddressableSyncSource |
|
The caller addressable sync source |
|
callerCallLogOid |
|
The caller call log object id |
|
duration |
|
The duration of the call in seconds, only filled on callHungUpEvent |