n
@Vapi can I connect my on-prem 3CX paBX to VAPI assistant? if so how?
v
@Nisar Absolutely, you can connect your on-premises 3CX PBX to VAPI. To do this, you'll need to set up a SIP Trunk between your 3CX system and VAPI. Here's a high-level overview of the steps you would typically follow: 1. **Create a SIP Trunk in 3CX**: Configure a new SIP Trunk in your 3CX Management Console. You'll need to provide details such as the Registrar/Server/Gateway Hostname or IP which will be provided by VAPI. 2. **Configure Authentication**: Set up the authentication details for the SIP Trunk. This usually involves a username and password or IP-based authentication. 3. **Define Dial Plan**: Create a dial plan in 3CX that routes calls to the VAPI SIP Trunk for the numbers or extensions you want to use with VAPI. 4. **Set Up VAPI Endpoint**: Create an endpoint on your server to receive messages from VAPI as per the Assistant Request documentation. 5. **Configure VAPI Account**: Add the endpoint URL you created to the Server URL field in the Account page on the VAPI Dashboard. 6. **Test the Connection**: Make a test call to ensure that the SIP Trunk is correctly routing calls between 3CX and VAPI. 7. **Implement Logic**: Develop the logic for handling calls on your server endpoint according to your business needs, using VAPI's capabilities. Please note that the exact steps may vary depending on the version of your 3CX PBX and the specific requirements of your setup. If you need detailed instructions or encounter any issues, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
s
@Nisar 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.
n
Hi Shubham, I've read the guide and works great with Twillio. But in this case it's a direct SIP call which should be possible. Can I see why Vapi is rejecting calls from my PABX please?
s
@Nisar could you share the recent Call ID and/or PCAP file so I could take a look?
n
@Shubham Bajaj here you go .. I think I found teh root cause, 3CX percentage encodes the SIP URI (sip:sip%3Anisarkhan222%40sip.vapi.ai) and VAPI is expecting the URI without encoding.. unfortunately thats how 3cx seems to work.. Where cna I see a log of http requests to VAPI please? https://cdn.discordapp.com/attachments/1329067809208270939/1329862927553007737/3CX_LOGS_to_VAPI?ex=678be2dd&is=678a915d&hm=5babe2b6cec40ad13bede2a6985f062ba43ecb53d882e91aac9d8fb4bb06d709&
@Shubham Bajaj here is a log of my request and response from VAPI from my script:
@User what is teh endpoint for SIP invites please?
s
@Nisar Could you please share the PCAP file so I can take a look? As we discussed on the call, it is required since it currently shows a 500 error but there is no way to verify the issue without it.
n
I'm afraid I dont unfortunately.. but thanks for taking the time to support yestarday, much appreciated..
Quick Question.. is it possible to receive SMS on my VAPI number?? I can find any resource for that??
s
@Nisar no you cannot recieve sms on numbers purchased from Vapi.
3 Views