Test0202
01/16/2025, 11:51 AMTest0202
01/16/2025, 11:51 AMVapi
01/16/2025, 11:52 AMVapi
01/16/2025, 11:52 AMVapi
01/16/2025, 11:52 AMsipUri
attribute within the forwardingPhoneNumbers
array in your Vapi application to specify the destination SIP address that points to your Asterisk system.
If you need detailed instructions or assistance with the configuration, please ask support for more info on this. They can provide you with specific guidance tailored to your setup.Test0202
01/16/2025, 11:57 AMShubham Bajaj
01/16/2025, 5:27 PMFelipe Hidalgo
01/21/2025, 5:52 PMShubham Bajaj
01/21/2025, 6:39 PMFelipe Hidalgo
01/22/2025, 12:11 AMVapi
01/22/2025, 12:11 AMsip.conf
file:
ini
[vapi-trunk]
type=peer
host=sip.vapi.ai
fromdomain=sip.vapi.ai
fromuser=YOUR_VAPI_USERNAME
username=YOUR_VAPI_USERNAME
secret=YOUR_VAPI_SECRET
context=incoming-vapi
canreinvite=no
insecure=invite
qualify=yes
Replace YOUR_VAPI_USERNAME
and YOUR_VAPI_SECRET
with your actual Vapi credentials. The context
parameter should match the context in your dial plan where you want to handle incoming calls from Vapi.
After configuring the SIP trunk, you'll need to set up your dial plan in the extensions.conf
file to use this trunk when sending calls to Vapi. Here's an example of how you might do that:
ini
[incoming-vapi]
exten => _X.,1,NoOp(Calling Vapi)
same => n,Dial(SIP/vapi-trunk/${EXTEN})
same => n,Hangup()
This configuration will send all calls that reach the incoming-vapi
context to Vapi via the vapi-trunk
SIP trunk.
Please note that this is a simplified example and your actual configuration might need additional parameters based on your specific requirements and network setup. Make sure to reload your Asterisk configuration after making these changes.
If you encounter any issues or need further assistance, please ask support for more info on this.Felipe Hidalgo
01/22/2025, 12:14 AMFelipe Hidalgo
01/22/2025, 12:15 AMFelipe Hidalgo
01/22/2025, 1:17 AMFelipe Hidalgo
01/22/2025, 1:17 AMFelipe Hidalgo
01/22/2025, 1:17 AM