Hi there! 👋 I understand you're experiencing a 403 Forbidden error with inbound calls on your BYO SIP Trunk, while outbound calls are working fine.
While I can't diagnose your specific issue without more details about your setup, I can definitely help with common causes and troubleshooting steps for this exact problem.
Here are some potential causes and solutions for your 403 Forbidden error:
### Destination Configuration
Make sure you're sending inbound requests to
sip.vapi.ai and not directly to IP addresses. According to [our documentation](
https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1329037681908383794), all requests to direct IP addresses are blocked.
### Authentication Issues
If your PBX trunk requires authentication:
- Ensure your credentials are correctly configured in your API call when creating the SIP trunk configuration
- You may need to include username/password in the Authorization header
- If using SIP-URI for authentication, ensure the username matches your SIP URI (e.g., if your SIP URI is sip:1111212@sip.vapi.ai, use 1111212 as the username) as mentioned in [our troubleshooting guide](
https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1329143416386355270)
### Network Configuration
- Check if your firewall is properly configured to allow SIP traffic
- SIP ALG (Application Layer Gateway) settings might be interfering with SIP messages
- Verify ports are open (typically 5060 for non-encrypted traffic)
### SIP System Requirements
Your SIP system might require specific headers or settings. According to [our support documentation](
https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334919245468799007), verify with your SIP system administrator if there are any specific requirements for:
- Expected headers
- Authentication methods
- Supported SIP methods
### Regarding Digest Auth vs Basic Auth
For Digest Authentication: