Skip to main content

Outgoing Ringing

Our TeleCMI platform will notify the following sample JSON live event to your web server POST method URL, when an incoming call hit on your user mobile/landline number.

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 event response

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

{ 
"type": "event",
"team": "Enquiry_1111113",
"user": "109_1111113",
"conversation_uuid": "7bf5fbab-5a1a-4cde-a0b6-aba843131950",
"cmiuuid": "93fa1889-61a5-4d03-b12d-d78ede2cf1ee",
"direction": "outbound",
"from": 9100000000,
"app_id": 1111113,
"time": 1571122016617,
"status": "ringing"
}

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

PropertyTypeDescription
typestringType of notification from TeleCMI platform it may be cdr or event
teamstringName of the team where the call was waited
userstringA unique Id of the user(agent)
conversation_uuidstringA unique identifier of this overall conversation
cmiuuidstringA unique identifier of this call
directionstringThe direction of this call it may be inbound or outbound
fromnumberThe number the call came from
app_idnumberYour app id
timenumberTimestamp of this call
customnumberYour custom parameters
statusstringStatus of this call