How to integrate Vapi with Asterisk for outbound a...
# support
j
Hi I was wondering how can I configure my vapi account to be able to make outbound calls vía Asterisk integration. Also for inbound.
v
message has been deleted
@jorgemtzvega Hello! I'm glad to assist you with setting up your VAPI account for outbound and inbound calls using Asterisk integration. For outbound calls with Asterisk, you'll need to: 1. Configure your Asterisk server to connect to VAPI as a SIP trunk. 2. Set up the dial plan in Asterisk to route outbound calls through the VAPI SIP trunk. 3. Ensure that your VAPI account has the necessary permissions and credits to make outbound calls. For inbound calls to Asterisk: 1. Configure a SIP URI in your VAPI account and point it to your Asterisk server. 2. Use the
sipUri
attribute within the
forwardingPhoneNumbers
array to specify the destination SIP address for inbound calls. 3. Make sure your Asterisk server is configured to accept and handle inbound calls from VAPI. Additionally, ensure that your system is configured to handle SIP REFER messages for call transfers. If you need detailed instructions or have specific parameters you'd like to set up, please let me know, and I can provide more tailored guidance. If you encounter any issues or have further questions, don't hesitate to ask for support.
You can continue this conversation by mentioning me in the message.
j
Yes, it would be great to have detail instructions to setup the outbound. For example, how do I link an existing agent to Asterisk vs. the twilio phone number. When I create a new call, how to send to asterisk instead of twilio.
g
@jorgemtzvega why do you use Asterick
j
the idea is to make the calls via Asterisk instead of twillio as the calls are too expensive for volume
For reference, In my country the cost is too high for the calls so I can lower (1/10 cost) by integrating. I have a customer interested on very high volume but only if the call costs are relatively average vs. market. I looked at the documentation and cant find this: "Choose to Import Numbers: Within the phone numbers section, you should find an option to import numbers from external providers."
g
send link to asterisk, i only know of telneyx as alt. to Twilio
very good that you shared, thank you
j
I looked at the documentation and cant find this: "Choose to Import Numbers: Within the phone numbers section, you should find an option to import numbers from external providers."
v
@jorgemtzvega I apologize for any confusion. If you're unable to find the option to import numbers from external providers in the documentation, it's possible that the feature may not be directly supported or the documentation may not be up to date. Typically, integrating Asterisk with an external API for outbound calls involves setting up a SIP trunk in Asterisk that points to the API's SIP endpoint. You would then configure your dial plan to route outbound calls through this trunk. For inbound calls, you would configure a DID (Direct Inward Dialing) number in Asterisk and point it to the API's SIP URI to receive calls. Since you're looking to integrate with VAPI and use Asterisk as an alternative to Twilio for cost reasons, you would need to: 1. Set up a SIP trunk in Asterisk for VAPI. 2. Configure outbound routes in Asterisk to use the VAPI SIP trunk. 3. Set up inbound routes in Asterisk to handle calls from VAPI. However, if VAPI does not directly support importing numbers or if the documentation does not provide the necessary information, I recommend reaching out to VAPI support for more detailed instructions and assistance with your specific use case. If you need further assistance or have additional questions, please let me know, and I'll do my best to help you.
j
Tell me more about "Typically, integrating Asterisk with an external API for outbound calls involves setting up a SIP trunk in Asterisk that points to the API's SIP endpoint. You would then configure your dial plan to route outbound calls through this trunk."
g
@User Termination URI, SIP trunk username, password is all you should need
j
@User but where in the vapi platform do I change that it points to the asterisk?
from the asterisk to vapi, I'm more clear to what to do. But when starting a call how to use with vapi the asterisk instead of twilio.
s
@jorgemtzvega 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.
s
My provider supports Sip trunking
Can you share the further process?
s
@Sairaj Shetty Please refer to the following guides that demonstrate how to establish a connection with your SIP provider. **Note**: While these guides use Twilio as an example, the process remains consistent across other telephony providers. https://vapi.notion.site/SIP-104008c8393f80feaeb7de8ca19565ed Please don't hesitate to reach out if you require additional assistance.
s
Hi @Shubham Bajaj thanks for sharing the documentation. However, there is a Twilio dashboard screenshot at the start and not the VAPI integration directly. We need to add our custom SIP on vicidial to be integrated directly to VAPI
On Vapi there is no frontend to make a connection of the other providers to vapi. It gives an option to import numbers only from Twilio or Vonage. Both of them are no providing indian numbers directly
We have completed the integration part of VAPI and are stuck with the dialing part. If the dialing part doesn't works, there is no point to use VAPI at our company
s
hey @Sairaj Shetty let's resolve your issue over the call, please check your DM.
s
Hey @Shubham Bajaj Thanks for your time We will go through the logs and get back to you
j
@User I was able to make it work with twilio elastic sip trunk but not sure how to handle this type of connection: ¿Do you know how can I connect to the following configuration that has more extended variables for configuration? usuario: [user] Contraseña: [password] Servidor: [ip] Puerto: 5060/UDP RTP: 10.000 - 20.000 dtmf: rfc2833 Dialplan: 9 dígitos
s
@jorgemtzvega you can use use the standard procedure for connecting with the SIP.
h
Hi @Shubham Bajaj , I am facing issues while trying to route calls from my asterisk server to Vapi. I am hearing the message Error. Contact support@vapi.ai. Can you please help in resolving the issue?
s
@HumanBeing yeah just ping me to your support and make sure to share call ID for outbound call and PCAP file for inbound call.
j
I've tried just that. I configured the sip to make outbound calls through the sip and add the phone but keep getting "sip gateway failed to connect" when I try outbound call, not more information. Is it possible to get a quick call or something to get up and running. I'm a bit time contrained to deliver and connect
p
Hey @jorgemtzvega, can you share the recent call ID?
53 Views