leoo_7777
06/12/2025, 12:55 PMpjsip show endpoints.
- ✅ I have a working assistant configured on my VAPI account.
My goal:
➡️ When someone calls my GSM SIM (in GOIP), the call reaches Asterisk, which should then forward the call to my assistant via VAPI (SIP).
What I need:
I’m looking for a working example of how to connect Asterisk to VAPI using SIP (pjsip.conf and extensions.conf). I have my assistant ID and API key, but I’m not sure:
- How to generate the SIP URI or SIP trunk inside VAPI.
- What to put in the pjsip.conf and extensions.conf to make this work.
Any help or working config examples would be greatly appreciated 🙏
Thanks in advance!Vapi Support Bot
06/12/2025, 12:56 PMsip:your_username@sip.vapi.ai and assign your assistant ([docs](https://docs.vapi.ai/advanced/sip)).
2. Asterisk Setup: In pjsip.conf, define an endpoint pointing to sip.vapi.ai. In extensions.conf, route incoming calls to this SIP URI.
The documentation does not provide a full Asterisk config example, so you may need to adapt a generic SIP trunk setup.
Clarifying question:
What version of Asterisk are you using, and do you already have a working SIP trunk config that we can build on?
Sources:
- [VAPI SIP Integration Guide](https://docs.vapi.ai/advanced/sip)
- [VAPI SIP Trunk Guide](https://docs.vapi.ai/advanced/sip/sip-trunk)leoo_7777
06/12/2025, 1:05 PMChiranjeet Mishra
06/15/2025, 7:09 PM