I think my current problem is that when configuring my phone number SIP credentials it only passes the validation when I have set inboundEnabled to false.
If I try this for example:
curl -X POST "https://api.vapi.ai/credential" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer
" \
-d '{
"provider": "byo-sip-trunk",
"name": "trunk 1",
"gateways": [{ "ip": "sip.zadarma.com", "inboundEnabled": true }],
"outboundLeadingPlusEnabled": true,
"outboundAuthenticationPlan": {
"authUsername": "
",
"authPassword": "
"
}
}'
I always get back this response:
{"message":"Couldn't validate SIP trunk credential. SIP gateway creation failed.","error":"Bad Request","statusCode":400}
But if inboundEnabled is false the CURL works