3CX sip trunk
# support
n
my 3cx pabx requires authentication to connect with the SIP trunk.. I need to make outbound calls with VAPi.. can I configure Vapi to use a username and password for making outbound calls via my sip trunk??
a
HeyNisar Thank you for creating the ticket! A member of our team will reach out to you shortly.
v
message has been deleted
@Nisar Absolutely, VAPI does support SIP authentication for making outbound calls. You can configure your SIP trunk with VAPI by providing the necessary credentials, such as the username and password, along with the SIP URI. To set this up, you would typically include the authentication details in your VAPI configuration when you're setting up the SIP trunk for outbound calls. If you need assistance with the specific configuration parameters or steps, please let me know, and I can guide you through the process or direct you to the appropriate support resources.
You can continue this conversation by mentioning me in the message.
n
Ok, please share a sample post request where I can create a phone number where I specify the username and password that should be used to connect with my trunk please
K
how do I add the username and password, which endpoint "Credential" or "phone-number"
p
@Nisar I have the exact same requirement. I have my DID, SIP Trunk credentials and URI. Were you able to get this resolved?
n
Hi Pratheek, not, I found the schema on the API docs, but when I create the request, the request fails.. I hope the support team can help..
m
@Nisar Hey I also have same issue
did you able to fix this
n
I took another approach...
m
What it is..?
s
@Nisar @pratheek checking if this is resolved for you? If not can you share the recent call IDs so I can take a look.
@Mohammad your issue is different from them, it has to do something with your SIP config.
p
Thanks for sharing, @Nisar Yes, the support team should definitely be able to help.
@Shubham Bajaj I haven't tried it yet. I am curious about bringing our own DID through SIP Trunking on Vapi. We're currently moving away from another provider and hence am validating before I make the decision.
Is it enough to have the SIP Trunk URI and credentials to connect our number to Vapi ?
n
Hi Guys, Shubham clarified that 3CX needs "Proxy Authentication Headers" Which Vapi does not provide. so untill the dev team implement support for proxy headers, you cannot connect directly to 3cx. The alternative is to use Twilio as a SIP Bridge. Solution Recap: Use Twilio as a SIP Bridge 3CX registers with Twilio (Twilio supports proxy authentication). Twilio forwards calls to Vapi.ai (which does not require proxy authentication). Thajnsk @Shubham Bajaj for your top notch support!
v
@Nisar I'm glad to hear that you've found a workaround for your situation by using Twilio as a SIP bridge. It's true that if VAPI currently does not support proxy authentication headers required by 3CX, then using an intermediary like Twilio that does support these headers is a smart solution. If you need any further assistance with setting up your SIP trunk with Twilio or have any other questions about integrating with VAPI, please feel free to ask. We're here to help ensure your voice application works smoothly with your desired setup.
s
> Is it enough to have the SIP Trunk URI and credentials to connect our number to Vapi ? @pratheek can you clarify what do you meant by enough here?
@Nisar @pratheek @Mohammad I would recommend that you verify this information for yourselves. cc: @Noel Roby
n
Hi Guys, I've received requests from a few users to share how to conect 3cx with Vapi via twilio.. so I created a video on it.. hopefully you find it useful: (

https://youtu.be/PUUpeoHC-_c

)
m
Thanks Sir
n
@Nisar
hi
are you able to do outbound and inbound
p
Sorry for being unclear. What I meant by enough is, my DID provider has provided me with the SIP Trunk URI, Username and Password. Will this be enough to connect my DIDs to Vapi and get going with call? I see you mentioned 3CX had some issue with Proxy Authentication Headers and suggested to use Twilio as a SIP bridge. Unfortunately, we cannot use any services of Twilio due to the strict data residency rules of a few of our clients. Either way, my provider is https://www.besanz.com/ I am sure there is no issue with outbound. Not sure about incoming yet.
s
@pratheek can you share the call ID for inbound call?
16 Views