SIP Trunking Issue Outbound Calls
I have the following issue.
I imported a number via BYO SIP Trunking from Telnyx to VAPI.
It works seamlessly for inbound calls.
But outbound calls from the vapi dashboard fail. It always states: call queued successfully but never calls. When I investigate, it seems the issue is the following:
I try to call a german number: +49...
When I follow this:
curl --location 'https://api.vapi.ai/call/phone' \
--header 'Authorization: Bearer YOUR_VAPI_PRIVATE_KEY' \
--header 'Content-Type: application/json' \
--data '{
"assistantId": "YOUR_ASSISTANT_ID",
"customer": {
"number": "CUSTOMER_PHONE_NUMBER",
"numberE164CheckEnabled": false
},
"phoneNumberId": "YOUR_PHONE_ID"
}'
and test it in curl from my CLI and use:
CUSTOMER_PHONE_NUMBER = +49XXXXX -> it never calls.
but when I put: CUSTOMER_PHONE_NUMBER = 0049XXXXX it works.
So I think there is some issue in how the telynx sip trunking works? This also affects the transferCall function
phone number ID: c32946de-2b04-419f-80bc-67008f55c8b0
assistant ID: 66febb4b-536f-4a30-b849-5dfd6f4816e6
I imported a number via BYO SIP Trunking from Telnyx to VAPI.
It works seamlessly for inbound calls.
But outbound calls from the vapi dashboard fail. It always states: call queued successfully but never calls. When I investigate, it seems the issue is the following:
I try to call a german number: +49...
When I follow this:
curl --location 'https://api.vapi.ai/call/phone' \
--header 'Authorization: Bearer YOUR_VAPI_PRIVATE_KEY' \
--header 'Content-Type: application/json' \
--data '{
"assistantId": "YOUR_ASSISTANT_ID",
"customer": {
"number": "CUSTOMER_PHONE_NUMBER",
"numberE164CheckEnabled": false
},
"phoneNumberId": "YOUR_PHONE_ID"
}'
and test it in curl from my CLI and use:
CUSTOMER_PHONE_NUMBER = +49XXXXX -> it never calls.
but when I put: CUSTOMER_PHONE_NUMBER = 0049XXXXX it works.
So I think there is some issue in how the telynx sip trunking works? This also affects the transferCall function
phone number ID: c32946de-2b04-419f-80bc-67008f55c8b0
assistant ID: 66febb4b-536f-4a30-b849-5dfd6f4816e6