Skip to main content

Outgoing Missed Webhooks

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

Implementation

TeleCMI webhooks implementation in different languages.

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


# Receive webhooks from TeleCMI platform when call receive or make
@app.route("/webhook/cdr",methods=['POST'])
def hello():
# Received JSON CDR from TeleCMI Platform
cdr = request.get_json()
print(cdr)

return "got it"



if __name__ == "__main__":
app.run(debug=True, port=5000)

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

Sample CDR response

This is the sample JSON call detail record(CDR) where the TeleCMI platform will notify your web server POST method URL.

{ 
"type": "cdr",
"appid": 1111113,
"to": 9100000000,
"cmiuuid": "deb11aa1-4c19-44a6-bb0e-3348007b757a",
"status": "missed",
"user": "103_1111113",
"time": 1570184113597,
"direction": "outbound",
"click_to_call": "true"
}

The above sample JSON call detail record(CDR), 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

PropertyTypeDescription
typestringType of notification from TeleCMI platform it may be cdr or event
app_idnumberYour app id
tonumberThe number the call was made to
cmiuuidstringA unique identifier of this call
statusstringStatus of this call
userstringA unique Id of the user(agent)
timenumberTimestamp of this call
directionstringThe direction of this call it may be inbound or outbound
click_to_callstringThis call is made through click to call api