Skip to main content

3CX

This installation guide explains how to set up a sipcall sip trunk or a sipcall virtual pbx number with 3CX.

note

Create a separate "sipcall sip trunk" for each location.
More detailed technical information about the "sipcall sip trunk" can be found here.

1. Adjustments in the sipcall Customer Portal

info

This step standardizes the phone number format to +E.164 and simplifies potential 3CX support.

  • Click on the phone number you want to use to set up the 3CX trunk.
note

If you have configured a "sipcall sip trunk", the trunk participants inherit the settings of the trunk’s main number.

  • In the configuration overview of the phone number, click the "Bearbeiten" (Edit) button within the "Rufnummernanzeige" (Caller ID) card.

  • In the "Rufnummernformat eingehende Anrufe" (Phone number format for incoming calls) card, set the option to "+e164" and save the change by clicking the "Speichern" (Save) button.

2. Registering the SIP Trunk

  • Open the web interface of the "3CX PBX" and navigate to "Admin".
  • In the left menu, click on "Voice & Chat".
  • Click on the "+ Add Trunk" button to add a SIP trunk.

  • Select the country "CH".
  • Select the provider "Sipcall".

  • Assign a freely selectable Name to the new SIP trunk, for example "sipcall".
  • Now fill in the following fields using the configuration data provided in the sipcall customer portal:

Main Trunk Number: <User id>
Authentication ID (SIP user ID): <User id>
Authentication password: <Password>

3. Configuring the SIP Trunk

3.1 Limit call channels

  • Go to the menu "Admin" —> "Voice & Chat". Select the desired SIP trunk by clicking on it. Then click on the "Options" tab.
  • In the field "Number of sim calls per trunk", change the number of simultaneous calls to the number of call channels available in your 3CX subscription.

3.2 Define call behavior

  • Go to the menu "Admin" —> "Voice & Chat". Select the desired SIP trunk by clicking on it.
  • Now define the default route for incoming calls. The following options are available:

3.4 Add trunk extensions

To add a new trunk extension, open the "DID Numbers" tab and click on the "+ Add" button.

Then enter each trunk extension (trunk participant) that you have also defined as a trunk extension in the sipcall customer portal in the following format:

  • Number format: +41442005000

3.5 Outgoing caller ID (optional)

In the "Options" tab —> under the section "Caller ID Control", you can define which phone number should be used by default for outgoing calls.
Enter the desired phone number under "Default Outbound Caller ID" in international format (+41xxxxxxxxx).
This number will then be displayed for all outgoing calls.

4. Emergency number configuration

  • In the "Admin" menu, click on "System", then select "Emergency".

  • Click on the "+ Add" button.
  • Enter the emergency numbers.
  • Also define which route should be used when dialing an emergency number. If you are using only sipcall with your 3CX, please use the following values:

Route 1: sipcall
Strip digits: Strip no digits
Prepend: <Leave empty>
Outbound caller ID: <Leave empty>

4.1 Overview of emergency numbers

- 112 European emergency number
- 117 Police
- 118 Fire department
- 143 Emotional support, crisis hotline
- 144 Ambulance, emergency medical services
- 145 Poison control
- 147 Child and youth emergency hotline
- 1410, Air Zermatt, air rescue service
- 1414 Rega, air rescue service
- 1415, Air Glaciers, air rescue service

Repeat this step until you have configured each individual emergency number.

Confirm the configuration by clicking "OK". The configuration should now look as follows:

5. Configuring 3CX Users

In the "Users" menu, you can manage the users.

  • Enter the user information.
  • In the "Assigned DID number(s)" dropdown menu, select the desired number(s) for the user.

In the "Outbound Caller ID" dropdown menu, enter the number that should be displayed for outgoing calls.

6. Configuring 3CX Settings

6.1 Configure local codecs

In the menu "Admin" —> "Advanced" —> "Codecs", configure the codecs in the following order and then click "Save":

  1. Priority G.722
  2. Priority PCMA
  3. Priority PCMU

6.2 Backup and restore

It is recommended to regularly back up your current 3CX configuration. If you do not want to do this manually, we recommend configuring a backup schedule.
You can also define the "Rotation", which determines how many existing backups will be retained.
Older backups can then be automatically deleted to free up storage space on your 3CX system. A recommended setup is to keep "3" backups and schedule a daily backup (at night).

info

Optionally, you can protect the backup with a password. This is recommended if you do not store the backup locally on the 3CX but rather use SMB, FTP, etc.

7. Define inbound and outbound rules

Unlike older 3CX versions, you can only define outbound rules for calls.
Incoming calls are automatically routed to the extension, IVR, ring group, etc., based on the assigned DID.

If you are using only sipcall as a trunk on your 3CX system, you can use the following default template.
This template routes all outgoing calls via sipcall. It applies to all 3CX users in the "DEFAULT" group.

8. Security measures

It is recommended to allow access to the 3CX management console only from authorized IP addresses in order to prevent spam requests and hacking attempts.
In the "Advanced" section -> "Console Restrictions", you can define which IP addresses or IP subnets are allowed to access the management console.

To do this, select the option "Allow access from specific IP addresses".

danger

DO NOT click "Save" if your current IP address is not authorized, as you may lock yourself out.

You can also check in the help window whether your current IP address is authorized when adjusting these settings.

9. Testing the 3CX configuration and SIP trunk

Now test your newly configured "3CX PBX". You can do this by making an inbound and outbound call.

Calls to other sipcall numbers are possible without credit.
Calls to the chargeable landline or mobile networks require sufficient balance on your sipcall account.

If you encounter any issues, our customer support will be happy to assist you.

3CX behind NAT

Details
tip

It is recommended to operate the 3CX system with a static public IP address.

Configuration steps

1. SIP trunks - Use local IP address

  • Navigate to "Admin" —> "Voice & Chat".
  • Select the desired SIP trunk by clicking on it.
  • Open the "Options" tab. In the "Configuration" section, locate the setting "Select which IP to use in 'Contact' (SIP) and 'Connection' fields".
  • If your 3CX has a fixed internal IP address in the local network, set this value to "Local IP Address (OS Default Route)".
  • Finally, click "Save" to re-register the SIP trunk.

2. Set time limit for SIP trunk registrations (Currently not possible in 3CX V20)

3. Enable keep-alive (Available via parameter adjustment)

  • Navigate to "Admin" —> "Advanced" —> "Parameters".
  • Enter "keepalive" in the search field and select "KEEPALIVEENABLED".
  • Change the value from "0" to "1", then click "OK".
  • The value for "KEEPALIVE_TIME_UDP" is by default set to "30" and should not be changed.

4. Restart 3CX services

  • After adjusting the settings, restart all 3CX services to ensure that the changes take effect.

5. Call testing

  • Perform tests for both incoming and outgoing calls to ensure the configuration is working correctly.
info

Make sure that all necessary ports (e.g. SIP: 5060, RTP: 9000-10999) are open on your firewall or router for our IP addresses. An overview can be found here.

Further resources

For additional product information, downloads, and support, please visit the manufacturer’s website: