Initiate phone calls to AirTel Right from your app.
We’re excited to show you in this tutorial how to send voice traffic (initiate calls) via AirTel using RESTFul API, After this tutorial you’ll be able to initiate outbound calls via Airtel right from web or mobile application by simply making a simple API Call.
As usual TelecomsXChange does not markup or commission on the seller rates, our model continues to be a subscription based model and you get exactly the rates offered by carrier AirTel.
AirTel has its own network (routes) in below countries:
- Kenya
- India
- Burkina Faso
- Ghana
- Gabon
- Sierra Leone
- Chad
- Tanzania
- Congo B
- Zambia
- Madagascar
- Uganda
- Seychelles
- Malawi
- Nigeria
- DRC
- Africa HQ
- Niger
- Rwanda
Requirements:
In order to be able to make this work, you’ll need to have the below items ready:
- TelecomsXChange Buyer Account, Don’t have an account yet ?
- Restcomm Cloud Account, Create one now.
Restcomm Cloud will be the API Interface that you’ll interact with to initiate the request while TelecomsXChange is responsible for terminating the calls to AirTel.
Follow this guide to prepare your Restcomm Cloud account to use TelecomsXChange for outbound calls.
In TelecomsXChange Portal you need to first make sure you subscribe to AirTel Route:
To subscribe to AirTel A-z routes, simply follow below steps:
1- Login to your TelecomsXChange Buyer Account, Don’t have an account yet ?
2- Click on Market View
3- in Seller section enter “AirTel” and click search
4- Click on the + icon to subscribe to the route.
Once you have done that, you can go ahead and initiate the call by making an API Request from your application.
Let’s say you want to initiate a call to the Sheraton Hotel in Mumbai via Airtel right from your application, API Request will look like this:
curl -X POST https://[ACCOUNT_SID]:[AUTH_TOKEN]@cloud.restcomm.com/restcomm/2012-04-24/Accounts/[ACCOUNT_SID]/Calls.json -d “From=%2b19542405000” -d “To=73297%23912261587777” -d “Url=[APPLICATION_URL]”