VAPI SIP trunk issues with Callgear and Asterix
# support
y
Hi Team! 👋 I'm trying to get Vapi SIP to connect, and I’m running into some issues. Tried two different setups — neither worked, and hoping you can help me debug it: my vapi login mike@dialog.ltd and VAPI project is "Dialog AI" 1️⃣ Direct SIP Trunk to CallGear via “Add New SIP Trunk” I attempted to connect Vapi directly to a CallGear SIP account using the “Add New SIP Trunk” form inside Vapi. Configuration: Gateway (SIP Server): sipve.callgear.com (actual domain provided by CallGear) Port: 9060 Protocol: udp Direction: Inbound & Outbound Options Ping: disabled Username / Password: provided by CallGear SIP Registration: Enabled Domain: sip.callgear.com Username: same as trunk username Realm: sip.callgear.com 🛑 Problem: — Vapi UI allowed me to save the configuration — But no calls or registration occurred — CallGear reported no registration attempts from Vapi — No SIP traffic or logs on CallGear’s side I asked Callgear support about the possibility that "Some providers may require you to enable SIP registration on their side, or to whitelist Vapi’s IP addresses," but they said: "We do not block any IP addresses. We don’t have any whitelists for SIP line registration." ________________ 2️⃣ Proxy SIP via Local Asterisk + Ngrok Tunnel I set up a local Asterisk 18.11.2 instance inside Docker and exposed it via ngrok TCP tunnel (configuration in the thread below) 🛑 Problem: — Asterisk endpoint stayed Unavailable in pjsip show endpoints — pjsip set logger on showed no incoming REGISTER or SIP traffic — Confirmed ngrok tunnel was active and open — Vapi appeared to not initiate any connection ❓ Help Needed In the CallGear setup: — does Vapi fully support registering to external SIP providers like CallGear? In the proxy setup: — Does Vapi support TCP-based SIP over custom ports? — Does Vapi initiate REGISTER automatically after saving a SIP trunk? https://cdn.discordapp.com/attachments/1364579081676390462/1364579082502799440/Screenshot_2025-04-23_at_13.46.08.png?ex=680a2ecd&is=6808dd4d&hm=a8cf08b1ae29c590ddb1ed804c1b0cf835a6cfff67b5e971e58538de9d726208& https://cdn.discordapp.com/attachments/1364579081676390462/1364579083005988976/Screenshot_2025-04-23_at_13.42.15.png?ex=680a2ece&is=6808dd4e&hm=837ecba37d30454ec313c341ee9ebc0ba5a868b6bcb3efc3c44e537a3220db9e& https://cdn.discordapp.com/attachments/1364579081676390462/1364579083496980543/Screenshot_2025-04-23_at_13.41.58.png?ex=680a2ece&is=6808dd4e&hm=a10d3d1af229035b2508747e400ba285291728111d62e8614f4b469aabe6b099& https://cdn.discordapp.com/attachments/1364579081676390462/1364579083903696927/Screenshot_2025-04-23_at_13.37.29.png?ex=680a2ece&is=6808dd4e&hm=b75dffff014c568d18f8595fdd9d54fd3567047b66af32442c2b9800f22b4359&
v
Hey there! 👋 I looked into your VAPI SIP trunk issues, but I need to get a human agent to help you out further. We've escalated your request, and someone from our team will reach out to you soon! If you have any more details to add in the meantime, feel free to share. 😊
Hey there! 👋 I looked into your VAPI SIP trunk issues, but I need to get a human agent to help you out further. We've escalated your request, and someone from our team will reach out to you soon! If you have any more details to add in the meantime, feel free to share. 😊
For your Asterisk setup, try directing all SIP traffic to
sip.vapi.ai
instead of using direct IP addresses:
Copy code
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060

[vapi]
type=endpoint
transport=transport-udp
context=from-external
disallow=all
allow=ulaw
outbound_auth=vapi-auth
aors=vapi

[vapi-auth]
type=auth
auth_type=userpass
username=YOUR_SIP_USERNAME
password=YOUR_PASSWORD

[vapi]
type=aor
contact=sip:sip.vapi.ai
Direct requests to IP addresses are blocked - you must use
sip.vapi.ai
for all SIP communication with Vapi. Sources: - [Discord Channel](https://discord.com/channels/1211482211119796234/1329037681908383794) - [Discord Channel](https://discord.com/channels/1211482211119796234/1329143416386355270)
For your Asterisk setup, try directing all SIP traffic to
sip.vapi.ai
instead of using direct IP addresses:
Copy code
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060

[vapi]
type=endpoint
transport=transport-udp
context=from-external
disallow=all
allow=ulaw
outbound_auth=vapi-auth
aors=vapi

[vapi-auth]
type=auth
auth_type=userpass
username=YOUR_SIP_USERNAME
password=YOUR_PASSWORD

[vapi]
type=aor
contact=sip:sip.vapi.ai
Direct requests to IP addresses are blocked - you must use
sip.vapi.ai
for all SIP communication with Vapi. Sources: - [Discord Channel](https://discord.com/channels/1211482211119796234/1329037681908383794) - [Discord Channel](https://discord.com/channels/1211482211119796234/1329143416386355270)
8 Views