Exotel VAPI Integration guide
# support
e
Hi @Vapi, @Vapi Ticket Bot and @Shubham Bajaj @Sahil Could you please assist with setting up VAPI outbound and inbound calls with Exotel? I spoke with them, and they confirmed that they provide streaming for inbound calls, but not for outbound calls. We also need to set up an Indian phone number for testing. Any guidance on how to navigate this situation or suggestions for alternative services we could contact would be greatly appreciated. Thank you!
v
Hi there! 👋 I'd be happy to help you set up VAPI with Exotel for both outbound and inbound calls, as well as provide options for obtaining an Indian phone number. ## Setting Up Outbound Calls with Exotel Since Exotel doesn't support streaming for outbound calls, you'll need to configure a SIP trunk: 1. **Set up the SIP Trunk with Exotel**: - Configure a SIP trunk in your Exotel account to connect to VAPI - Make sure to set up the correct authentication parameters (username, password, IP address, and port number - typically 5060 for UDP) 2. **Configure VAPI**: - Create a new SIP trunk in VAPI with this structure:
Copy code
json
   {
     "provider": "byo-sip-trunk",
     "name": "Exotel Trunk",
     "gateways": [
       {
         "ip": "Exotel_IP_Address",
         "port": "5060",
         "netmask": 32,
         "inboundEnabled": true,
         "outboundEnabled": true,
         "outboundProtocol": "udp"
       }
     ]
   }
- Send this configuration to the API endpoint using:
Copy code
bash
   curl -X POST 'https://api.vapi.ai/credential' \
   -H 'Authorization: Bearer YOUR_API_KEY' \
   -H 'Content-Type: application/json' \
   --data-raw '{ /* JSON structure shown above */ }'
3. Configure your dial plan in Exotel to route calls through the VAPI SIP trunk ## Setting Up Inbound Call Streaming with Exotel 1. **Configure SIP Trunking on Exotel**: - Create a new SIP trunk in your Exotel account for handling inbound calls - Gather details like SIP URI and authentication credentials 2. **Configure VAPI**: - Add your SIP trunk details under the forwardingPhoneNumbers attribute:
Copy code
json
   {
     "forwardingPhoneNumbers": [
       {
         "sipUri": "sip:your-exotel-number@sip.exotel.com"
       }
     ]
   }
3. Create a VAPI assistant to handle incoming calls 4. Test the setup to ensure calls to your Exotel number are correctly routed to your VAPI assistant ## Obtaining an Indian Phone Number for Testing
Here are your options: 1. **Using Exotel with SIP Trunking**: - You can use Exotel for SIP trunking with your Indian phone number 2. **Alternative Providers**: - **Local Indian Providers**: Consider JIO or Airtel for SIP trunking - **Twilio**: Can be used as a SIP bridge (though there may be limitations with Indian numbers) - **Telnyx**: Another alternative for SIP trunking - **Zoom**: Some users have explored Zoom for SIP services Let me know if you need more specific details on any part of the setup process! Sources: - [How can VAPI be configured for outbound calls using Exotel, considering Exotel does not support streaming for outbound calls?](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1324828879667597424) - [What are the steps to set up inbound call streaming with Exotel for VAPI integration?](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335850580018728980) - [What methods are available to obtain an Indian phone number for testing VAPI, and what are alternative service providers if Exotel is not suitable?](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336705023106744350)
e
Anybody from VAPI can you please confirm if anyone was succesfull with the above setup guide .
@Shubham Bajaj @User @Sahil
Hi, I have some queries regarding the Exotel setup. We have a demo scheduled with a client at the end of the month. Could we please connect over a call to help me navigate the issue? Exotel support seems confused about the VAPI integrations and is suggesting that the integration might not be possible. If someone could assist me with this, it would be greatly appreciated. Thank you! @Shubham @Sahil @Vapi
I am looking how we can integrate with exotel
@Shubham Bajaj
I would recommend that you help with Exotel or any other service, rather than relying on an individual, as I have legitimate business documents for registration in India and can purchase my own numbers. Exotel support is denying service to people because they are unable to figure out the SIP trunking setup. Additionally, the account manager I was speaking with had 4–5 clients who wanted to integrate Vapi into their existing services. If you could also assist in resolving this issue, it would be beneficial for everyone @User @Vapi
@Shubham Bajaj
They have the IP address, but they are not providing it to us. Now, they have raised a ticket with their tech team, which is currently on holiday. In India, I believe Exotel is one of the biggest players in this space, so you should consider working with them to find a solution. I think the document which you guys have made will work ,it will work—it’s just that they have a knowledge gap and they cannot accept what a customer has to say
From the team would be helpful on other services one might use instead of exotel
r
Hey @EinNot , where you able to figure out a proper solution to this? I was also looking to integrate Vapi or Retell with Exotel... Not yet found a proper solution to this... Still researching...
s
This ticket has been marked as solved, and as a result, you will no longer receive any further responses. Kindly create a new support ticket to escalate your inquiry. 
9 Views