VAPI and Exotel integration
# support
a
Can you help with a simple documentation that could navigate me through the steps? I want to use VAPI as an engine for our cloud telephony calls over Exotel
v
Absolutely! Here’s a simple guide to help you integrate VAPI with Exotel for cloud telephony calls: ### Steps to Integrate VAPI with Exotel 1. SIP Trunk Setup - Ensure that Exotel supports SIP trunking, as this will be your primary method for integration. - Check with your telephony provider to confirm they support SIP trunking for Indian phone numbers. 2. Trunk Configuration - Configure Your Exotel Trunk: Make sure Exotel is set up to support SIP connections. You will need to provide SIP details from VAPI, such as the SIP server and any required authentication details. 3. VAPI Configuration for SIP Trunking - In VAPI, specify the
sipUri
within the
forwardingPhoneNumbers
array to point to the Exotel SIP endpoint. Ensure your system can handle SIP calls, including processing SIP REFER messages for call transfers. 4. Call Flow Establishment - Set up the call handling logic within VAPI to route calls properly. This involves configuring your application to route calls to and from your PBX using the trunk you’ve set up. 5. Testing the Setup - After configuration, perform thorough testing for both inbound and outbound calls to ensure everything works as expected. ### Additional Resources - For more detailed documentation, you can refer to the official [VAPI documentation](https://docs.vapi.ai/). If you have any questions or need further assistance, feel free to ask! 😊 Source: - [VAPI Documentation](https://docs.vapi.ai/)
a
More resources around VAPI SIP trunk
n
@Ashhar Please note that connecting your Exotel account to Vapi may be subject to some regulatory issues in India, specifically if you are a contact center. As far as I can recall, there are some specific regulations in India relating to the connection of local services to remotely located VoIP services around the world.
a
Hi Nir. Thanks for sharing 😀 We want to use this for our personal lead qualification process. Do you have any other contacts or resources I can engage with further on this?
s
@Ashhar you can connect with @Invorto he can help you with the process to get indian phone numbers.
a
Thanks, Shubham. Can you share context about him? Will connect accordingly
n
@Ashhar Try having a look at DIDWW who provide phone numbers in India as well.
a
Sure. Thanks 😊
s
@Ashhar just checking on your progress with indian phone numbers, anything I can help with?
a
@Shubham Bajaj I didn't get a response from @Invorto But I talked to couple of telephony providers and they said the SIP server has to be located in India for doing this for Indian number. Which kind of rules out VAPI as an option 😦
n
Actually, I may be able to help in this case. You are referring to a regulatory constraint which states that call-center services or dialer-services, that operate in India, must only be performed using India phone numbers. In addition, as far as I can recall, India is split into multiple telecom regions, thus, an automated system in Mumbai is not allowed to call a person in Karnatka, as they fall under different juristrictions.
a
Thanks, Nir. How can you help here?
n
Well, in order to get this working, you need to have a host located in India, so that your Indian number is hooked up into an India located server endpoint
a
Then that means, I can't use VAPI, right? @Nir S (CEO/Founder @Cloudonix)
n
@Ashhar no, it means using Vapi requires a bit more tools to work around the regulatory issues.
a
Ohk. Thanks 🙂
s
Marking this ticket as Solved ✅
d
Hi Nir, so can you please elaborate a bit more on how to achieve this?
n
Do you have a local SIP trunk provider yet?
d
No, nothing yet
r
Hi @Nir S (CEO/Founder @Cloudonix) , I am trying to do the same with Exotel as my local SIP provider... So what is the best way to achieve this?
n
What information did they provide you?
k
@Reon
r
@Nir S (CEO/Founder @Cloudonix) Exotel team have asked me to get IP address and port number from Vapi
n
Ok, that means they use ip/fqdn based interconnect.
In that case, you need to create a cloudonix account in order to pass them the relevant information.
Your cloudonix account will include a domain that will be their inbound routing endpoint.
It's a relatively simple procedure.
If you sign-up we can schedule a call and help you setup properly.
h
Hello @Nir S (CEO/Founder @Cloudonix) I have a local sip trunk provider and I am hoping to host the vapi agent in india using your servers. Can you please help me with scheduling a call with your team to discuss this further?
n
Pin a meeting on my calendar
h
Thank you, I have scheduled a call. Looking forward to speaking
n
sounds good, c'ya then
a
Hello @Nir S (CEO/Founder @Cloudonix) i got a sip trunk number from Exotel in India.. can you or someone in your team help us integrate this with VAPI
n
Yes
But a bit later
We're out of office right now
v
Vapi supports integrating SIP trunks from providers like Exotel using its BYO SIP Trunk feature. You’ll need your Exotel SIP server address, credentials, and phone number to set up the integration in Vapi. However, the documentation does not provide Exotel-specific steps or address any India-specific requirements. Could you clarify which step of the Exotel–Vapi integration you need help with (e.g., credential setup, number association, or call routing)? Source: - [Vapi SIP Trunking Guide](https://docs.vapi.ai/advanced/sip/sip-trunk)
Thanks for reaching out! To help you further, could you please specify if you have already obtained all the required SIP credentials and network details from Exotel, or do you need guidance on that initial setup step? Source: - [Vapi SIP Trunking Guide](https://docs.vapi.ai/advanced/sip/sip-trunk)
To integrate your Exotel SIP trunk with Vapi, use the following example to create a SIP trunk credential in Vapi (replace the placeholders with your Exotel SIP details):
Copy code
bash
curl -X POST "https://api.vapi.ai/credential" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_VAPI_PRIVATE_KEY" \
  -d '{
    "provider": "byo-sip-trunk",
    "name": "Exotel Trunk",
    "gateways": [{ "ip": "YOUR_EXOTEL_SIP_SERVER" }],
    "outboundAuthenticationPlan": {
      "authUsername": "YOUR_SIP_USERNAME",
      "authPassword": "YOUR_SIP_PASSWORD"
    }
  }'
After this, associate your Exotel number with the credential using a similar API call. Make sure to confirm Exotel's SIP server address and credentials before proceeding. Note: Adapt these steps to Exotel's requirements and ensure compliance with Indian telecom regulations. Source: - [Vapi SIP Trunking Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk)
n
@Akash Malhotra I'm at my console, so when you are available - I'll be happy to take a look at your Exotel account and see how we can connect you to VAPI rapidly.
v
To connect your Exotel SIP trunk with Vapi, use the following API call to create a SIP trunk credential (replace the placeholders with your Exotel details):
Copy code
bash
curl -X POST "https://api.vapi.ai/credential" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_VAPI_PRIVATE_KEY" \
  -d '{
    "provider": "byo-sip-trunk",
    "name": "Exotel Trunk",
    "gateways": [{ "ip": "YOUR_EXOTEL_SIP_SERVER" }],
    "outboundAuthenticationPlan": {
      "authUsername": "YOUR_SIP_USERNAME",
      "authPassword": "YOUR_SIP_PASSWORD"
    }
  }'
After this, associate your Exotel number with the credential using a similar API call. Be sure to confirm your Exotel SIP server address and credentials before proceeding. Note: Adapt these steps as needed for Exotel and Indian regulatory requirements. Source: - [Vapi SIP Trunking Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk)
a
Hi can we connect
@Nir S (CEO/Founder @Cloudonix)
n
of course - just DM me
8 Views