Need help to setup sip trunk with Yeastar P560/P57...
# support
z
Hi, i already setup the trunk between Vapi and my onprem Yeastar but try outbound call and not get thru. here's some call ID a40b0176-3117-4aa6-98f3-3ce82f837ff0 57c777bc-4e85-477c-993b-05d1bfb5e4cc 97d7e42b-f996-4e45-a0c0-4d49065894a4 I want to use onprem Yeastar to do outbound call. Thank you.
v
To ensure outbound calls from your Yeastar to Vapi work, double-check that your Yeastar system is allowlisting the following Vapi SIP IPs:
Copy code
44.229.228.186/32  
44.238.177.138/32
Also, confirm your SIP trunk in Vapi is set up with the correct Yeastar gateway IP and authentication. Here’s a sample Vapi API call for the trunk setup:
Copy code
bash
curl -X POST "https://api.vapi.ai/credential" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_VAPI_PRIVATE_KEY" \
  -d '{
    "provider": "byo-sip-trunk",
    "name": "Yeastar Trunk",
    "gateways": [{ "ip": "YOUR_YEASTAR_IP_OR_DOMAIN" }],
    "outboundAuthenticationPlan": {
      "authUsername": "YOUR_SIP_USERNAME",
      "authPassword": "YOUR_SIP_PASSWORD"
    }
  }'
Update your Yeastar and Vapi settings as above, then test an outbound call again. For more details, see the [Vapi SIP trunking guide](https://docs.vapi.ai/advanced/sip/sip-trunk). Source: - [Vapi SIP Trunking Guide](https://docs.vapi.ai/advanced/sip/sip-trunk)
c
Also make sure that the gateway you configured for the SIP trunk only has
outboundEnabled: true
and
inboundEnabled: false
and the protocol must be set to
udp
3 Views