Can we integrate Vapi with Asterisk telephone syst...
# support
t
I want to integrate Vapi with Asterisk telephone system. Can it be done in Vapi.
@User @Shubham Bajaj
v
message has been deleted
You can continue this conversation by mentioning me in the message.
@Test0202 Absolutely, Vapi can be integrated with an Asterisk telephone system. To achieve this, you would typically use the SIP Origination feature of Vapi to send calls to your Asterisk system. You'll need to configure your Asterisk system to accept SIP calls from Vapi and ensure that it is set up to handle SIP REFER messages for call transfers. Here's a general outline of the steps you might take: 1. Configure your Asterisk SIP settings to allow connections from Vapi. 2. Set up the necessary dial plan in Asterisk to handle incoming calls. 3. Use the
sipUri
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.
t
Can it be done without Code?
s
@Test0202 To use Asterisk phone numbers with Vapi, you need to check with your telephony provider if they support SIP trunking. If they do, then I will share the further process to set up SIP trunking using your telephony provider and Vapi.
f
I need help for configuring asterisk to integrate with vapi.ai for vapi.ai receiving calls from asterisk. Currently I am able to send calls to vapi.ai but receive a 401 from vapi.ai
s
@Felipe Hidalgo Please create a new #1211483291191083018 ticket and I will share the rest of the process and communicate with you there. Just tag me as well.
f
I need de asterisk sip config for sending calls to vapi
v
@Felipe Hidalgo Certainly! To send calls from Asterisk to Vapi, you'll need to configure your Asterisk SIP settings to create a SIP trunk to Vapi. Here's a basic example of what the SIP configuration might look like in your
sip.conf
file:
Copy code
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:
Copy code
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.
f
where I found the YOUR_VAPI_USERNAME and YOUR_VAPI_SECRET
where I found the YOUR_VAPI_USERNAME and YOUR_VAPI_SECRET
VAPY USERNAME
username
asterisk
16 Views