Inbound URL
# support
s
How to setup inbound url in vapi
v
To set up an inbound URL in Vapi, follow these steps: ### Step 1: Create an Assistant in Vapi 1. **Create an Assistant**: Start by creating an assistant in Vapi that will handle your inbound calls via the Vapi dashboard or API. 2. **Configure the Assistant**: Attach necessary configurations, including server URLs for call events. ### Step 2: Get a Phone Number 1. **Acquire a Phone Number**: Import an existing number or generate a new one through Vapi. 2. **Assign the Assistant**: Link your assistant to the phone number to manage incoming calls. ### Step 3: Configure Telnyx SIP Settings 1. **Setup Inbound Authentication**: - Go to your Telnyx account and create a SIP trunk. - Add your Fully Qualified Domain Name (FQDN) as
sip.vapi.ai
and set the port to 5060. 2. **Inbound Tab Settings**: Configure the inbound settings to direct calls to your Vapi server. 3. **Assign Phone Number**: Link your acquired phone number to the SIP trunking option. ### Step 4: Modify SIP Invite 1. **Edit Numbers**: In the Telnyx portal, edit the relevant phone number and set the "Translated Number" according to the SIP URI specified in Vapi. ### Step 5: Test Setup 1. **Call the Number**: Test the configuration by calling the assigned number to ensure your assistant handles the call correctly. 2. **View Logs**: Check call logs in the Vapi dashboard for any adjustments needed. ### Optional: Setup Webhooks If you want to handle requests with a custom server, you can send a PATCH request to update the server URL linked with a phone number. For more detailed instructions, you can check the [Setting Server URLs documentation](https://docs.vapi.ai/server-url/setting-server-urls). Sources: - [Setting Server URLs](https://docs.vapi.ai/server-url/setting-server-urls) - [Vapi Quickstart Guide](https://docs.vapi.ai/quickstart/phone/inbound) - [Telnyx SIP Configuration](https://docs.vapi.ai/advanced/sip/telnyx)
2 Views