skinny-azureS

Need help connecting Asterisk to VAPI SIP for incoming GSM calls from GOIP

Hi everyone,

I’m currently integrating a GOIP device (Dinstar with GSM SIM card) with VAPI so that all incoming GSM calls are handled by my VAPI voice assistant.

Here’s what I’ve done so far:
  • ✅ GOIP is successfully registered as a SIP endpoint on my Asterisk server.
  • ✅ Asterisk shows the GOIP as "Available" with pjsip 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!
Was this page helpful?