All articles
25 November 2026 VoxioTelecom Team

3CX SIP Trunk Setup: Connect a Generic Wholesale Trunk

Step-by-step 3CX SIP trunk setup with a generic provider: server, authentication, caller ID, outbound rules with route prefixes, DIDs and SIP error fixes.

Cover illustration for the article: 3CX SIP Trunk Setup: Connect a Generic Wholesale Trunk

To connect 3CX to a wholesale SIP trunk, add a generic SIP trunk, enter the provider's registrar/proxy, authentication and caller ID, then create an outbound rule that adds any route prefix. Menu names differ between 3CX versions, so this guide focuses on the values each field needs rather than exact screen labels.

Before you start

Collect from your VoxioTelecom portal:

  • SIP server (registrar/proxy) host and port
  • Authentication method: username/password registration or IP authentication
  • Your public IP, if you use IP authentication (add it to the trunk's allowed IPs)
  • The caller ID (CLI) you are authorised to present
  • The route prefix you want to use, if any (route prefixes explained)

New to the portal? Follow how to create a SIP trunk first.

Step 1 — Add a generic SIP trunk

In the 3CX admin console, open the trunks section and add a new trunk. Choose your country and the generic SIP trunk (or "generic provider") template rather than a named carrier template.

Step 2 — Enter the server details

3CX field (typical label)Value
Registrar / Server / ProxySIP host from the portal
PortPort from the portal (commonly 5060 for UDP/TCP)
Main trunk numberYour DID or caller ID number
Number of simultaneous callsYour approved channel limit

Do not set the simultaneous call count higher than your approved account limit; extra attempts will be rejected (channels vs CPS).

Step 3 — Authentication

  • Registration: select register/authenticate with username and password and paste the SIP credentials.
  • IP authentication: choose the option that does not register, and make sure your 3CX public IP is on the trunk's allowed list in the portal.

Never share credentials in tickets or screenshots, and rotate them if exposed.

Step 4 — Caller ID

Set the outbound caller ID on the trunk (or per extension) to a number you are authorised to use. Check the format required — usually full international format without "+" or "00". Learn the difference between a DID and caller ID and how to test CLI delivery.

Step 5 — Outbound rule with route prefix

Create an outbound rule that sends international calls to the new trunk. If you want a specific route class (for example Premium CLI), use the rule's "prepend" option to add the technical prefix before the international number. Strip local access codes such as "00" if your users dial them.

Step 6 — Inbound DID routing

If you have a DID routed to this trunk, add it to the trunk's DID list and set the inbound destination (extension, ring group or IVR). See route a DID number to a SIP trunk.

Step 7 — Test and read the response codes

Place a test call and check the 3CX event log or a SIP capture:

  • 401/407 — wrong credentials or the server expects registration.
  • 403 — IP not allowed, account inactive, insufficient balance or destination blocked (403/480 guide).
  • 503 — capacity or upstream route issue (503 guide).
  • One-way audio — usually NAT or firewall RTP settings (one-way audio fix).

Security checklist for 3CX trunks

Restrict outbound rules to the countries you call, set strong extension passwords, keep 3CX updated and use a prepaid balance as a spending cap. More in our SIP trunk security guide.

Frequently asked questions

Can I use any SIP trunk with 3CX? Most standards-based SIP trunks work through the generic SIP trunk template, as long as you have the server, authentication and caller ID details.

Should I use registration or IP authentication with 3CX? Registration is simpler behind dynamic IPs. IP authentication suits a fixed public IP and avoids credential exposure; restrict it to that IP.

Why does my 3CX trunk register but calls fail? Registration only proves the credentials. Calls can still fail because of caller ID format, balance, destination rules, route prefixes or capacity; check the SIP response code.

How do I dial a route prefix from 3CX? Use an outbound rule that prepends the prefix to the dialled international number, so users dial normally.

See the live rate deck

Create an account to browse the full A-Z deck in your portal — Premium CLI and Standard clearly labelled, searchable by prefix or destination.

Create account