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.
Here is a sample response that you can send(Python/flask):
from flask import Flask, request
app = Flask(__name__)
@app.route("/", methods=["GET", "POST"])
response = '<?xml version="1.0"?>'
response += '<Response>'
response += '<Dial phoneNumbers="your-sip-phone" callerId="Your-AT-Number"/>'
response += '</Response>'
if __name__ == "__main__":
app.run(host="0.0.0.0", port=8080, debug=True)