Urgent - sip trunk connection error - phone is not...
# support
a
Please check why sip connection is not connecting
We are getting 401 message as unauthorized...but previously it was all working ok
s
Hi andrewboy777, To troubleshoot your SIP trunk connection issue, here are some steps you can take: 1. **Verify Whitelisted IPs**: Make sure that the following IPs are allowlisted for SIP signaling and media: -
44.229.228.186/32
-
44.238.177.138/32
- `172.31.9.106/32`Ensure your SIP provider uses a unique termination URI or a dedicated SIP server, as shared servers might lead to routing issues if IP-based authentication is used. 2. **Check Call Ended Reason**: Obtain the call ID of the failed attempt and check the call's
endedReason
by retrieving the call data from Vapi: - Use the API:
Copy code
shell
     curl -X GET "https://api.vapi.ai/call/{call_id}" \
     -H "Authorization: Bearer YOUR_API_KEY" \
     -H "Content-Type: application/json"
- Look for specific error codes that might indicate the issue, such as
call.in-progress.error-sip-telephony-provider-failed-to-connect-call
. 3. **Examine Configuration**: Ensure your SIP trunk and phone number registrations are correctly configured in Vapi. Check for any misconfigured authentication details or incorrect SIP server addresses. 4. **Review SIP Provider Logs**: Check the telephony provider's dashboard for logs. Look for any error messages related to the SIP trunk configuration or call initiation. Refer to the [SIP Trunking Guide](https://docs.vapi.ai/advanced/sip/sip-trunk) for detailed setup instructions and common troubleshooting steps. If you continue to face difficulties, consider examining specific configuration aspects that may have been overlooked.
a
i need human help asap
k
Have you completed all the steps?
a
Yes
Are you human?
k
Yes i am
Send phone number ID..
s
@andrewboy777 Is the problem solved? Let me know, We can connect over meet.
a
Yeah it is solved..is think you fixed it somehow internally;)
k
Glad it is fixed..