Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Commit 67e6334

Browse files
author
Tony Bedford
committed
New building block.
1 parent fd7ad0e commit 67e6334

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env python3
2+
from flask import Flask, request, jsonify
3+
4+
app = Flask(__name__)
5+
6+
7+
@app.route("/webhooks/answer")
8+
def answer_call():
9+
ncco = [
10+
{
11+
"action": "talk",
12+
"text": "Please wait while we connect you to the conference"
13+
},
14+
{
15+
"action": "conversation",
16+
"name": CONF_NAME
17+
}]
18+
return jsonify(ncco)
19+
20+
21+
if __name__ == '__main__':
22+
app.run(port=3000)

0 commit comments

Comments
 (0)