Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 42 lines (37 sloc) 1.06 KB
#!/usr/bin/env python3
from flask import Flask, request, jsonify
from pprint import pprint
app = Flask(__name__)
def answer_call():
ncco = [
"action": "talk",
"text": "Hi, we will shortly forward your call. This call is recorded for quality assurance purposes."
"action": "record",
"split" : "conversation",
"channels" : 2,
"eventUrl": [""]
"action": "connect",
"eventUrl": [""],
"from": "NEXMO_NUMBER",
"endpoint": [
"type": "phone",
return jsonify(ncco)
@app.route("/webhooks/recordings", methods=['POST'])
def recordings():
data = request.get_json()
return "Webhook received"
if __name__ == '__main__':
You can’t perform that action at this time.