Skip to main content
All CollectionsVoice
How do I receive calls on my SIP phone(or any IP phone)
How do I receive calls on my SIP phone(or any IP phone)
n
Written by nyakio muriuki
Updated over a week ago

Prerequisites: You will need a virtual number and a SIP phone from Africa’s Talking.

When your virtual number is called, we notify you of the incoming call through your callback URL. You can then respond with a dial action asking us to forward the call to your SIP number.

Also, look at how we handle calls here and more on SIP phones here.

Here is a sample response that you can send(Python/flask):

from flask import Flask, request 

app = Flask(__name__)
@app.route("/", methods=["GET", "POST"])
def say():
response = '<?xml version="1.0"?>'
response += '<Response>'
response += '<Dial phoneNumbers="your-sip-phone" callerId="Your-AT-Number"/>'
response += '</Response>'
return response

if __name__ == "__main__":
app.run(host="0.0.0.0", port=8080, debug=True)

Did this answer your question?