Skip to main content

voice-phone-terminated-cc-v1 Event

The voice-phone-terminated-cc-v1 event is triggered when an inbound or outbound voice call ends, after the wrap-up process in the 8x8 Contact Center agent panel.

Properties

Object containing the following properties:

PropertyDescriptionType
eventName (*)Name of the event'terminated'
eventId (*)Unique Id generated for each event at runtimestring
method (*)Events published to third party are named as mapEvent'mapEvent'
direction (*)Shows direction of interaction inbound or outbound'inbound' | 'outbound'
media (*)The media type, here it is phone'phone'
searchContext (*)Holds phone number of inbound/outbound callstring
startTime (*)Start time of the callstring
endTime (*)End time of the callstring
callDuration (*)Duration of the call in secondsstring
callRecordingShows url of downloadable call recording if call was being recordedstring
hasRecording (*)Shows if call was recordedboolean
additionalData (*)Holds additional data related to callObject with properties:
  • disposition_code (*): string - disposition_code is a mandatory field while others are optional.
  • lastTclCodeShort: string - lastTclCodeShort is optional
  • lastTclCodeDesc: string - lastTclCodeDesc is optional
  • notes: string - notes is optional
schemaVersion (*)Current schema version of the event'1.0.0'

(*) Required.

Event Emission

The voice-phone-terminated-cc-v1 event is emitted by the Mashell UI component when an inbound or outbound voice call ends. It is consumed by a third-party system for further processing.

Listeners

The event is consumed by the third-party system, which processes it accordingly.

Additional Information

Sample Event Payload:

{
eventType: "mashell-voice-phone-terminated-cc-event-v1",
status: "success",
data: {
eventName: 'terminated',
eventId: 'eventIdString',
method: 'mapEvent',
direction: 'inbound/outbound',
media: 'phone',
searchContext: '+1234567890',
startTime: '1751445666638',
endTime: '1751445695892',
callDuration: '00:00:22',
callRecording: '',
hasRecording: true/false,
additionalData: {
disposition_code: '1000',
lastTclCodeShort: '',
lastTclCodeDesc: '',
notes: ''
}
}
}