Skip to main content

Outgoing Answered CDR

To receive the outgoing answered cdr, you must complete the webhooks setup. After completing the webhooks setup, our TeleCMI platform will notify your web server POST or GET method URL with JSON call detail record(CDR) when an outgoing call answered.

Sample CDR response

This is the sample JSON Call Detail Record(CDR), where the TeleCMI platform will notify your web server POST or GET method URL.

virtual_number: '440000000000',
call_id: 'c4504776-d91e-123b-29a7-56000429abc3',
custom: '{"crm":"true"}',
leg: 'a',
type: 'cdr',
appid: 2222223,
to: 442000000000,
cmiuuid: '10ee0eb6-c417-4f5a-b122-bffe28f96eae',
status: 'answered',
user: '202_2222223',
time: 1650630551178,
direction: 'outbound',
answeredsec: 15,
hangup_reason: 'recv_bye',
request_id: 'c0Sq3mbykoHgVgLfyWTr6cV6HB5Z0Fk4AXpZFkOClSr',
extra_params: '{"click2call":"true"}'

The above sample JSON Call Detail Record(CDR) consists of several properties. Each property has a description, so take a look at it.


This is the list of properties and their descriptions.

virtual_numberstringThe caller ID of the outbound call.
call_idstringA unique ID of an outbound call.
customstringYour custom parameters.
legstringDefine the leg of the call either a or b.
typestringType of notification from TeleCMI platform it may be cdr or event.
app_idnumberYour app id.
tonumberThe call was made using this number.
cmiuuidstringA unique identifier for this call.
statusstringThe status of this answered call.
userstringA unique ID of the user.
timenumberA timestamp indicates the time the call was answered.
directionstringThe direction of this call is outbound.
answeredsecnumberThe duration of the call answered in seconds.
  • sent_bye = The call ended by the user.
  • recv_bye = The call ended by the caller.
  • recv_cancel = The call ended due to user unanswer.
  • sent_reject = The call rejected by the user.
request_idstringA unique identification of this call was initiated through click2call.
extra_paramsstringYour custom parameters for click2call.
recordbooleanIf the record is enabled, it shows the status as true.
filenamestringThe file name of the recorded conversation.
The request_id and extra_params will be sent, when the outbound call is initiated through click2call.


TeleCMI webhooks implementation in different languages.

from flask import Flask,request
app = Flask(__name__)

# Receive webhooks from TeleCMI platform when call receive or make
def hello():
# Received JSON CDR from TeleCMI Platform
cdr = request.get_json()

return "got it"

if __name__ == "__main__":, port=5000)

To know more about testing webhooks for local development purposes, go to examples.