EinNot
03/13/2025, 1:21 PMVapi Support Bot
03/13/2025, 1:22 PMjson
{
"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:
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:
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 TestingVapi Support Bot
03/13/2025, 1:22 PMEinNot
03/13/2025, 1:28 PMEinNot
03/13/2025, 1:32 PMEinNot
03/13/2025, 3:57 PMEinNot
03/13/2025, 7:49 PMEinNot
03/13/2025, 7:50 PMEinNot
03/13/2025, 8:00 PMEinNot
03/13/2025, 8:01 PMEinNot
03/13/2025, 8:25 PMEinNot
03/14/2025, 4:57 PMReon
04/21/2025, 8:01 PMShubham Bajaj
04/21/2025, 8:29 PM