BYO-SIP Failed Even Watch through tutorial at webs...
# support
d
{ "provider": "byo-sip-trunk", "name": "Twilio Trunk", "gateways": [ { "ip": "call-service.pstn.twilio.com", } ], "outboundLeadingPlusEnabled": true } but when I do that it gives issue { "message": "Couldn't validate SIP trunk credential. SIP gateway creation failed.", "error": "Bad Request", "statusCode": 400 } @Shubham Bajaj @Vapi Support Bot @Vapi Urgent help
c
Hi there, Thank you for your message. Our team is currently out of the office. We operate Monday through Friday, from 9:00 AM to 8:00 PM Pacific Standard Time (PST). We’ll get back to you as soon as possible during our normal business hours. If your message is urgent, please mark it accordingly or include “URGENT” in the subject line, and we’ll do our best to respond promptly. Warm regards, Vapi Customer Support Team
g
If you’re open for a quick chat, we could get the whole thing sorted out right now..
c
Hi Dev, To troubleshoot and resolve call forwarding drops, follow these steps: 1. Verify Vapi Call Initiation: - Use Vapi's API to check the call status and
endedReason
. Run:
Copy code
bash
     curl -X GET "https://api.vapi.ai/call/{call_id}" \
     -H "Authorization: Bearer YOUR_API_KEY" \
     -H "Content-Type: application/json"
- If the
endedReason
is
assistant-forwarded-call
, Vapi successfully initiated the transfer. Otherwise, review your assistant configuration. 2. Check Assistant Configuration: - Ensure your assistant's
serverMessages
do not include
phone-call-control
unless necessary for custom logic. - Disable
phoneCallProviderBypassEnabled
unless using a custom control. 3. Telephony Provider Logs: - Access your telephony provider's dashboard (like Twilio, Vonage, or Telnyx). - Search using
phoneCallProviderId
and check for errors. 4. Analyze SIP Traffic (if applicable): - For SIP-based calls, download and inspect the PCAP file using Wireshark. - Filter for
REFER
method to verify the transfer request was sent and accepted by the SIP provider. 5. Common Fixes: - Confirm the destination number format, including the country code. - Ensure the destination number is callable and not blocking incoming calls. Refer to our [call forwarding debug guide](https://docs.vapi.ai/phone-calling/transfer-calls/debug-forwarding-drops) for detailed steps and configurations.
d
Were you able to resolve this? I'm trying this today as well, followed the exact directions laid out in the tutorial, and I am receiving the same 400 bad request error as you.
d
No
c
Remove the comma after the twilio ip value
Copy code
{
  "provider": "byo-sip-trunk",
  "name": "Twilio Trunk",
  "gateways": [
    {
      "ip": "call-service.pstn.twilio.com"
    }
  ],
  "outboundLeadingPlusEnabled": true
}
d
That does not work.
Also with SIP number can we transfer call or not?
2 Views