Subject: BYO SIP Trunk - Outbound Call Failed to C...
# support
f
Hi VAPI Support, I am experiencing an issue with BYO SIP trunk outbound calling using SignalWire. I have confirmed with SignalWire support that the issue is on VAPI's end. Here is my setup: - Provider: SignalWire - SIP Domain: fluxmediamarketing-vapi-outbound.dapp.signalwire.com - Phone Number: +12056703181 - Credential ID: c8e49fb6-1d3e-4297-9418-c71aa2210945 - Phone Number ID: 58299159-e3c3-4769-b44e-090b571f1c76 The error I keep getting in call logs: "call.in.progress.error sip outbound call failed to connect" And when I fetch the call details via API: - sipReason: Domain unavailable - sipStatus: 404 - endedReason: call.in.progress.error-sip-outbound-call-failed-to-connect What I have already done: 1. Created SWML outbound routing script in SignalWire 2. Created SIP domain app in SignalWire 3. Set password for domain app 4. Whitelisted all VAPI IPs (44.229.228.186, 44.238.177.138, 44.211.181.180, 54.202.83.248, 52.43.240.87, 34.212.51.219) 5. Enabled OPUS codec 6. Created BYO SIP trunk credential via API with both gateway IPs and SIP registration plan 7. Exited SignalWire trial mode and added credits SignalWire support confirmed: "I retested setting up a new VAPI SIP trunk and I'm seeing the same error. There appears to be an issue with VAPI's API for setting up new byo-sip-trunk style SIP trunks." Could you please investigate this issue on your end? It seems to be a bug with VAPI's BYO SIP trunk API. Thank you!
v
Suggestion: The most common cause of "Domain unavailable" (SIP 404) errors is using a hostname instead of a numeric IPv4 address in your SIP trunk configuration. Please resolve your SIP domain to its IPv4 address and update your gateway config as shown below:
Copy code
json
{
  "provider": "byo-sip-trunk",
  "name": "SignalWire Trunk",
  "gateways": [
    {
      "ip": "YOUR_SIGNALWIRE_IPV4_ADDRESS",
      "port": 5060,
      "outboundEnabled": true,
      "inboundEnabled": false
    }
  ]
}
Replace
YOUR_SIGNALWIRE_IPV4_ADDRESS
with the resolved IP (e.g., use
dig +short fluxmediamarketing-vapi-outbound.dapp.signalwire.com A
).
For more details, see the [troubleshooting guide](https://docs.vapi.ai/advanced/sip/troubleshoot-sip-trunk-credential-errors). Source: - [Troubleshoot SIP trunk credential errors](https://docs.vapi.ai/advanced/sip/troubleshoot-sip-trunk-credential-errors)
f
Hi VAPI Support, I'm experiencing an issue with outbound calls through a SignalWire SIP trunk. Here are my details: Setup: - Provider: SignalWire BYO SIP Trunk - SIP Domain: fluxmediamarketing-true-vapi-outbound.dapp.signalwire.com - SIP Gateway IP: 104.248.150.114 (resolved via nslookup) - Credential ID: e38f7db1-3424-4aff-a37f-e1b7c5c3c65f - Phone Number ID: 105a7942-94c9-4894-b8a3-716ec934350f - Phone Number: +12056703181 Error: call.in-progress.error-sip-outbound-call-failed-to-connect What I've done: 1. Created BYO SIP trunk credential with gateway IP 104.248.150.114, port 5060 2. Registered phone number with credential ID 3. Assigned an AI assistant to the phone number 4. Whitelisted VAPI IPs (44.229.228.186/32 and 44.238.177.138/32) in SignalWire 5. SignalWire SWML script is configured correctly for outbound routing Problem: Test calls fail immediately with the above error. No logs or transcripts are generated in the call detail. The call never reaches SignalWire. Could you please help identify why the SIP outbound call is failing to connect? Thank you!
a
Have you been able to solve this or you still need help? @flux media