3cx Configuration Guide
3cx Configuration Guide
3cx Configuration Guide
INTRODUCTION ............................................................................................................. 4
AUTO-PROVISIONING ................................................................................................. 16
Page | 2
Configuring Grandstream Devices with 3CX Phone System
Table of Figures
Figure 1: SIP Phones in the same LAN as 3CX Phone System ................................................................ 5
Figure 2: Remote Phone Located Behind SBC......................................................................................... 6
Figure 3: Remote Phone using STUN ...................................................................................................... 7
Figure 4: Account Configuration on GXP2170 .......................................................................................... 9
Figure 5: Phones Panel ......................................................................................................................... 10
Figure 6: Create a VPK on GXP2170 ..................................................................................................... 11
Figure 7: BLF Key.................................................................................................................................. 11
Figure 8: GXV3275 Account General Settings ........................................................................................ 12
Figure 9: Outbound Proxy setting ........................................................................................................... 13
Figure 10: Configure Remote extension via STUN ................................................................................. 14
Figure 11: NAT Traversal set to STUN ................................................................................................... 14
Figure 12: General Settings – STUN server ........................................................................................... 15
Figure 13: GXV3275 Discovered via PnP feature ................................................................................... 17
Figure 14: Assign Extension to Phone .................................................................................................... 17
Figure 15: Configuring BLF .................................................................................................................... 18
Figure 16: Add Phone via MAC address................................................................................................. 18
Figure 17: Devices behind SBC ............................................................................................................. 19
Figure 18: Provisioning via SBC............................................................................................................. 20
Figure 19: Add Phone via MAC address................................................................................................. 21
Figure 20: Provisioning using STUN ...................................................................................................... 22
Figure 21: Phone Configuration using STUN.......................................................................................... 22
Page | 3
Configuring Grandstream Devices with 3CX Phone System
INTRODUCTION
All Grandstream products are SIP based and respect RFC3261 for SIP and related RFCs, allowing them
to interact with any SIP server including 3CX Phone System.
Grandstream endpoints support PnP (Plug and Play) feature to make devices installation and configuration
easy from SIP servers supporting this feature such as 3CX Phone System. Using auto-provisioning,
Grandstream devices can be configured with zero configuration on the device side.
This guide will help users to configure their Grandstream devices with 3CX Phone System via manual
configuration or via auto-provisioning.
• Remote Devices using SBC: Grandstream devices are located in a different network where a 3CX
SBC (Session Border Controller) is installed and connected to the remote 3CX Phone System.
• Remote Devices using STUN: Grandstream devices are located in a remote network behind a router
with NAT.
Page | 4
Configuring Grandstream Devices with 3CX Phone System
NETWORK SETUP
In this tutorial, we will use three network setups including LAN, SBC and STUN.
Grandstream devices and 3CX Phone System are located in the same local network as shown on the
following figure.
Internet
IP: 192.168.5.210
Router
Switch
IP: 192.168.5.136
Page | 5
Configuring Grandstream Devices with 3CX Phone System
Internet
Router
Router
Switch
Switch
3CX SBC
IP: 192.168.6.31
Remote STUN
Grandstream Devices support STUN mode in SIP Network Settings, allowing them to communicate with
3CX Phone System across the WAN.
3CX Phone System must be using a static public IP / FQDN, and the firewall should allow SIP / RTP traffic:
• TCP port configured during installation used for the provisioning of remote extensions (in this guide,
8001 with HTTPS).
• UDP port 5060: used for SIP traffic.
• UDP ports 9000–9500: used for RTP traffic (audio/video).
Page | 6
Configuring Grandstream Devices with 3CX Phone System
Internet
Router
Router using
Dynamic Public IP
Switch
Switch
3CX Phone System
FQDN: gstest.3cx.eu
Private IP: 192.168.5.116 Private IP: 192.168.6.95
Page | 7
Configuring Grandstream Devices with 3CX Phone System
MANUAL CONFIGURATION
Before configuring the end device, users will need to ensure that extensions are already created on 3CX
Phone System and make sure that the devices are properly powered up, connected to your Network and
have IP addresses.
This chapter will introduce how to configure a Grandstream device manually located in the same local
Network as 3CX Phone System, behind a 3CX Session Border Controller, or remotely using STUN.
1. Take note of the ID and password fields of the extension from 3CX Phone System which will be
configured on the device.
2. Connect the device to the network and power supply. The phone will boot up and obtain an IP
address (assuming a DHCP server is available in the network).
3. Use your browser to access the web interface of the device by entering http://ip-address where ip-
address is the IP address of the device.
4. Enter the admin username and password, and click login to access the configuration pages. Default
admin username and password are admin/admin.
6. Make sure that “Account Active” is set to “Yes’, then Enter the SIP credentials retrieved from 3CX
Phone system on the appropriate fields as shown in the below example:
Page | 8
Configuring Grandstream Devices with 3CX Phone System
Figure 4: Account Configuration on GXP2170
7. Click on Save and Apply for the configuration to take effect and register the account. The phone
will send SIP REGISTER request to 3CX Phone System and get the extension registered.
Page | 9
Configuring Grandstream Devices with 3CX Phone System
Figure 5: Phones Panel
Note: Since the phone used is already on the same network as the 3CX Phone System, users may either
use 3CX Phone System private IP or FQDN on SIP Server Field.
Multi-Purpose Keys (MPK), and Virtual Multi-Purpose Keys (VPK) on supported models can be configured
to act as Speed Dial, BLF (Busy Lamp Field) and more other features.
VPKs are available in GXP21XX and GXP17XX series only and can be configured instead of using physical
built-in MPK or extension module (GXP2200EXT).
In this chapter, we are using GXP2170 which doesn’t support MPK by default (extension module can be
attached), thus we will use VPK available by default.
P a g e | 10
Configuring Grandstream Devices with 3CX Phone System
Figure 6: Create a VPK on GXP2170
4. To configure a Key as BLF for instance to monitor another extension on 3CX Phone System, set
Mode to Busy Lamp Field (BLF).
5. In Accounts dropdown list, select the account to use with this VPK.
P a g e | 11
Configuring Grandstream Devices with 3CX Phone System
Remote Devices using 3CX SBC
To configure a Grandstream device located behind a 3CX SBC, follow below instructions:
Note: We will use GXV3275 as example. Same configuration applies to other models.
1. Take note of SIP extension credentials from 3CX Phone System to be configured on the device.
2. Log in to the phone and go to Account General Settings.
3. Make sure to set Account Active to “Yes”.
4. Fill the information related to SIP extension created on the 3CX Phone System.
5. In SIP Server field, enter the IP/FQDN of 3CX Phone System (in this example: “gstest.3cx.eu”),
and click on Save.
6. Once saved, navigate to Network Settings under account and type in the private IP and port of
3CX SBC in Outbound Proxy field (192.168.6.31:5060).
P a g e | 12
Configuring Grandstream Devices with 3CX Phone System
Figure 9: Outbound Proxy setting
7. Click on Save and Apply to register the extension with 3CX Phone System as tunneled via 3CX
SBC.
Note: We will use GXP2135 as example. Same configuration applies to other models.
1. Take note of the SIP extension credentials from 3CX Phone System to be configured on the device.
2. Log in to the phone and go to Account General Settings.
3. Make sure to set Account Active to “Yes”.
4. Fill the information related to SIP extension created on the 3CX Phone System.
5. In SIP Server field, enter the public IP/FQDN of 3CX Phone System (“testgs.3cx.eu” in this
example), and click on Save.
P a g e | 13
Configuring Grandstream Devices with 3CX Phone System
Figure 10: Configure Remote extension via STUN
6. Once saved, navigate to Network Settings and set NAT Traversal to “STUN”.
7. Press Save button and navigate to Settings General Settings. In STUN Server field, set a valid
STUN server (“stun.3cx.com:3478” for example).
P a g e | 14
Configuring Grandstream Devices with 3CX Phone System
Figure 12: General Settings – STUN server
8. Press Save and Apply to register the device with 3CX Phone System.
P a g e | 15
Configuring Grandstream Devices with 3CX Phone System
AUTO-PROVISIONING
Before configuring the end device, users will need to ensure that extensions are already created on 3CX
Phone System and make sure that the devices are properly powered up, connected to your Network and
have IP addresses.
This chapter will introduce how to auto-provision a Grandstream device located in the same local Network
as 3CX Phone System, behind a 3CX Session Border Controller, or remotely using STUN.
Grandstream SIP devices can be provisioned using Plug and Play feature which offers the possibility to be
auto-discovered at boot when in the same Local Network as 3CX Phone System, allowing the phone to
retrieve the configuration automatically once assigned.
1. Power on the phone and connect it to the same LAN as 3CX Phone System.
At booting stage, Grandstream devices send a SIP SUBSCRIBE message to multicast IP address
to be discoverable by 3CX Phone System in same LAN.
2. Access to 3CX Phone System interface and click on Phones in the left panel.
Discovered devices with their related information including Model, MAC address, IP address will
be displayed as shown in below figure.
Note: If a device is not discovered, access to its web interface and set 3CX Auto Provision to
“Yes” (by default set to Yes) under Maintenance Upgrade and Provisioning then reboot it.
P a g e | 16
Configuring Grandstream Devices with 3CX Phone System
Figure 13: GXV3275 Discovered via PnP feature
3. Select the device to provision and click on Add Ext (to create a new extension for this device) or
Assign Ext (to assign a previously created extension).
4. Users can configure advanced options on the device during provisioning such as voice codecs,
Forwarding Rules, BLF… as shown in below figure.
P a g e | 17
Configuring Grandstream Devices with 3CX Phone System
Figure 15: Configuring BLF
Users have also the possibility to prepare 3CX Phone System to provision Grandstream devices that will
be deployed with the system before having them connected to the network.
4. In “Phone Provisioning” tab, leave Provisioning Method set to “Local LAN (in the office)”.
5. Press OK to save the configuration.
6. Once the device with matching model/MAC address is connected to the network and detected by
3CX Phone System, the phone will reboot and get provisioned automatically with assigned
extension and configuration.
P a g e | 18
Configuring Grandstream Devices with 3CX Phone System
Remote Devices using 3CX SBC
To auto-provision Grandstream devices located behind a 3CX SBC, follow below steps:
3. 3CX will open “Phone Provisioning” tab with following options preconfigured:
o Provisioning Method set “3CX SBC (remote)”.
o MAC Address set to phone’s MAC address.
o Select Interface set to 3CX FQDN (in this example: “gstest.3cx.eu”).
o IP Address of 3CX Session Border Controller set to 3CX SBC IP.
o Port set to 3CX SBC SIP port (in this example: 5060).
4. Click on OK to provision the phone.
5. Once applied, the phone will be rebooted and get provisioned automatically with provisioning URL
on its configuration server path.
(In this example: “https://gstest.3cx.eu:8001/provisioning/l8g27ctxwm1ye0”.)
P a g e | 19
Configuring Grandstream Devices with 3CX Phone System
Figure 18: Provisioning via SBC
P a g e | 20
Configuring Grandstream Devices with 3CX Phone System
Figure 19: Add Phone via MAC address
P a g e | 21
Configuring Grandstream Devices with 3CX Phone System
Figure 20: Provisioning using STUN
6. Click on OK to save and apply changes. 3CX will prepare a configuration file for the phone with
configured MAC address, model and settings.
7. Access remote phone’s web interface, navigate to Maintenance Upgrade and set following:
o Config Upgrade via: Set provisioning protocol (in this example: “HTTPS”).
o Config Server Path: Set provisioning URL (in this example:
“gstest.3cx.eu:8001/provisioning/l8g27ctxwm1ye0”).
8. Press Save and Apply, and reboot the phone to start provisioning process.
9. Once rebooted, the phone will contact 3CX server to download its configuration file and get
provisioned with assigned extension.
P a g e | 22
Configuring Grandstream Devices with 3CX Phone System