Outgoing Hangup

Our TeleCMI platform will notify the following sample JSON live event to your web server POST method URL, when an outgoing call is got hangup.

Sample event response

This is the sample JSON live event, where the TeleCMI platform will notify your web server POST method URL.

A Leg

The A leg represents the outgoing call of the caller(the person who made a call).

{
leg: 'a',
type: 'event',
click_to_call: true,
user: '109_1111113',
cmiuuid: 'd965c6e0-5493-44f8-8d7d-b9a8077013a4',
direction: 'outbound',
callerid: '04471000000',
app_id: 1111113,
time: 1571122196059,
status: 'hangup',
to: '9100000000',
conversation_uuid: 'd965c6e0-5493-44f8-8d7d-b9a8077013a4'
}

B Leg

The B leg represents the outgoing call of the callee(the person who is called by the caller).

{
leg: 'b',
type: 'event',
click_to_call: true,
user: '109_1111113',
cmiuuid: '1e12c087-e5bb-4e77-8e42-1249fa40a99b',
direction: 'outbound',
callerid: '04471000000',
app_id: 1111113,
time: 1571122196059,
status: 'hangup',
from: '9100000000',
conversation_uuid: 'd965c6e0-5493-44f8-8d7d-b9a8077013a4'
}

The above sample JSON live event consists of several properties. Each property has a description and take a look at it.

Properties

These are the list of properties and its description

PropertyDescription
legDefine the leg of the call either a or b
typeType of notification from TeleCMI platform it may be cdr or event
click_to_callThis call is made through click to call api
userA unique Id of the user(agent)
cmiuuidA unique identifier of this call
directionDirection of this call
calleridCaller ID of this call
app_idYour app id
timeTimestamp of this call
statusStatus of this call
toThe number the call was made to
fromThe number who made a call
conversation_uuidA unique identifier of this overall conversation