Python
Create the project
The full source code is available on the Vonage-Community GitHub, but here's how to build it yourself.
Make a directory for your application, cd into the directory then create a file called app.py to contain your application code.
Create a Python virtual environment and activate it:
python3 -m venv venv . ./venv/bin/activate
Then, install the required modules:
pip install Flask flask-sock
Connect to a WebSocket
Connect an inbound call to a WebSocket with the Voice API
Steps
1
Introduction2
Prerequisites3
Buy a Vonage number4
Create a Voice Application5
Link a Vonage number6
Create the project7
Write your answer webhook8
Write your event webhook9
Create the WebSocket10
Test your application11
Conclusion12
What's next?