Cannot create SIP trunk to RingCentral
# support
a
Hi, ive attempted to create a sip trunk to ringcentral with this
Copy code
curl -X POST "https://api.vapi.ai/credential" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <API_KEY>" \
  -d '{
    "provider": "byo-sip-trunk",
    "name": "RingCentral Trunk",
    "gateways": [{
      "ip": "<OUTBOUNT_PROXY>",
      "port": <OUTBOUNT_PROXY_PORT>,
      "netmask": 32,
      "inboundEnabled": true,
      "outboundEnabled": true
    }],
    "outboundLeadingPlusEnabled": false,
    "outboundAuthenticationPlan": {
      "authUsername": "<USER_NAME>",
      "authPassword": "<PASSWORD>",
      "sipRegisterPlan": {
        "domain": "sip.ringcentral.com",
        "username": "<AUTHORIZATION_ID>",
        "realm": "sip.ringcentral.com",
        "publicIpInContactEnabled": true
      }
    }
  }'
but i always get this
Copy code
{
  "message": "Couldn't validate SIP trunk credential. SIP gateway creation failed.",
  "error": "Bad Request",
  "statusCode": 400
}
whats going on?
what did i do wrong?
j
That 400 error usually means the trunk isn’t registering correctly with RingCentral, often due to an auth mismatch, wrong proxy/port, or realm misconfiguration. If the SIP REGISTER returns 401 or 403, the credential validation will instantly fail. I can help you quickly identify where the registration is breaking and adjust the config properly. Are you using their SIP trunking product or just registering a standard extension? @User
a
i have an existing phone number in ringcentral that i want to reuse for the vapi agent
Copy code
often due to an auth mismatch, wrong proxy/port, or realm misconfiguration.
im very confident that i entered the correct ringcentral info, so my only conclusion is that vapi either does not support ringcentral or has a bug
n
@aafsgdrgdrgdgr have you figured this out?