Send WhatsApp calls to 3CX

Want WhatsApp calls to ring on your 3CX like any other call? When a customer taps call in your WhatsApp chat, it can go to your extensions, queues, IVR or 3CX's voicemail. You add a trunk in 3CX (the line that brings outside calls into 3CX), open a few ports, and switch it on in Sonar with your 3CX's address. You don't need a developer or anything from Meta's developer site, just someone who can open ports on your firewall.

Why bother, and what it saves against an 0800 number: WhatsApp calls on your phone system.

The short version

  • In 3CX, import 3CX's WhatsApp trunk template and add a trunk with your WhatsApp number.
  • Open TCP 5061 and UDP 9000 to 10999 from the internet to your 3CX.
  • In Sonar, open your number's Calls and voicemail tab, then Send calls to your phone system. Pop in your 3CX address, hit Check my phone system, then Send calls there.
  • Call your WhatsApp number from a phone. It rings on 3CX.
  • One button puts calls back in Sonar whenever you like.

Before you start

  • Any paid Sonar plan. It's on every paid plan, from Starter. See pricing.
  • A WhatsApp number connected only to Sonar. Meta doesn't allow calls on a number you also use in the WhatsApp Business app on your phone.
  • Calls allowed for that number in Meta. If the number has never taken WhatsApp calls, switch them on once in WhatsApp Manager: Phone numbers > your number > Call settings > Allow voice calls. Meta's test numbers always need this.
  • 3CX version 20, Update 8 or later, that can take a SIP trunk. That's 3CX on your own server or in your own cloud (the free Basic edition works), or a 3CX PRO trial. 3CX's free shared edition, at an address like yourname.3cx.cloud, can't take one.
  • Your 3CX's public address with a valid certificate. The address 3CX gave you at set-up, such as yourname.3cx.co.za, has one. WhatsApp connects to it securely (over TLS) and checks the certificate.
  • Someone who can open ports on the firewall or router in front of your 3CX.

1. Add the WhatsApp trunk in 3CX

  1. Download 3CX's WhatsApp trunk template: whatsappsip.pv.xml, from 3CX's WhatsApp SIP calling guide.
  2. In 3CX's admin, open Advanced > Templates > Provider Templates, press Add, choose the file and press Create.
  3. Open Voice & Chat > Add Trunk. Choose country Worldwide and provider Whatsapp.
  4. Name it, choose where calls go (an extension, a queue or your IVR) and untick Create an outbound rule.
  5. Set Main Trunk Number to your WhatsApp number with its + and country code and no spaces, such as +27821234567. Sonar shows it, with a copy button, under What to enter in 3CX.
  6. Leave everything else as the template set it: wa.meta.vc over TLS, SRTP and the Opus codec. Save.

2. Open the ports

WhatsApp connects to your 3CX from the internet, so open these on your firewall or router:

  • TCP 5061: the call itself (SIP over TLS).
  • UDP 9000 to 10999: the sound. That's 3CX's default range. If you've changed yours, open yours.
  • TCP and UDP 5090: only for 3CX's own apps on phones outside your office.

On a cloud server you usually just allow them in the provider's firewall. In an office, your router forwards them to the 3CX machine.

3. Switch it on in Sonar

You need to be an owner or admin.

  1. Open WhatsApp numbers, choose the number and open its Calls and voicemail tab.
  2. Open Send calls to your phone system at the bottom.
  3. Pop in your 3CX's address, such as yourname.3cx.co.za. Leave the port at 5061 and the call encryption keys at SDES (3CX).
  4. Hit Check my phone system. Sonar connects to your 3CX the way WhatsApp will, and tells you what it found (like "Reached yourname.3cx.co.za on port 5061, with a valid certificate") or what to fix.
  5. Hit Send calls there and confirm. Sonar asks Meta to send this number's calls to your 3CX, using the connection your number already has with Sonar.

4. Make a test call

  1. On a WhatsApp account that isn't your business number, open the chat with your business and tap the call button.
  2. Let it ring out once, to check your 3CX greeting or voicemail plays.
  3. Call again and answer it wherever the trunk sends it.

3CX's call log shows the call from the customer's WhatsApp number, such as +44 7700 900123.

What changes while it's on

  • Calls ring on 3CX, not in Sonar. Sonar's greeting and voicemail don't answer them, and they don't show in the Inbox.
  • 3CX keeps its own call log, recordings and voicemail.
  • Messages stay in Sonar: chats, broadcasts, flows and the AI Agent work as before.
  • Sonar's own call settings on that number are locked until you switch this off.
  • To go back, hit Stop, and use Sonar's call settings again. Sonar switches 3CX off with Meta and puts your Sonar calls back as they were, voicemail included.

What we tested

On 22 November 2026, with 3CX version 20 Update 10, the free Basic edition, installed from 3CX's Debian 12 image on a server behind a firewall, with the ports above forwarded to it:

  • We switched a number on in Sonar. Meta took the setting first time, once the number's calls were allowed in WhatsApp Manager.
  • A call from a personal WhatsApp reached 3CX: Meta's servers connected over TLS on port 5061 and 3CX logged the call from the caller's number.
  • Nobody answered the extension, so it went to 3CX's voicemail. The caller heard 3CX's greeting and left a message, with sound both ways.
  • Not tested yet: answering in the 3CX app, and pressing keys in a 3CX menu. We'll add them here once we have.

If it doesn't work

  • "Authorization Error (Meta's error 100)" when you switch it on. The number's calls have never been allowed. Allow them in WhatsApp Manager (see Before you start), then hit Send calls there again.
  • "Nothing answered on port 5061". TCP 5061 isn't reaching your 3CX. Open it on the firewall or forward it on the router.
  • "Its certificate isn't valid". Use the exact address on your 3CX's certificate, usually the one 3CX gave you, not an IP address or another name.
  • It rings but there's no sound, or sound only one way. UDP 9000 to 10999 isn't reaching 3CX, or 3CX has the wrong public IP. Check the ports, and check 3CX's Advanced > Network shows your public IP.
  • No WhatsApp provider in 3CX's Add Trunk. Import the template first (step 1), and choose country Worldwide. You can't add it at all on 3CX's free shared edition.
  • It worked, then stopped. If your office internet's public IP changes, your 3CX address has to follow it. 3CX's own addresses update by themselves when 3CX's network setting is Dynamic public IP.

Questions

Does it cost anything?

Calls your customers make to you on WhatsApp are free, and Sonar doesn't charge per call for sending them to your phone system. Your 3CX licence is between you and 3CX: the free Basic edition worked in our test.

Can calls ring in Sonar and on 3CX at the same time?

No. Each WhatsApp number sends its calls to one place, Sonar or your phone system. You can switch whenever you like, and if you've got two numbers, each can go its own way.

Can we call customers on WhatsApp from 3CX?

Not yet. For now 3CX only takes incoming WhatsApp calls. To call a customer on WhatsApp, use Sonar with calls ringing in Sonar.

Does it work with phone systems other than 3CX?

It should work with any phone system that takes a SIP trunk over TLS with SRTP and the Opus codec, as WhatsApp requires. If yours uses DTLS for the call encryption keys, choose that instead of SDES. We've only tested 3CX.

Are the calls secure?

Yes. WhatsApp connects to your phone system over TLS and the sound is encrypted with SRTP. The call doesn't pass through Sonar: Sonar only tells Meta where to send it.