Grandstream Networks, Inc.
Table of Content INTRODUCTION ............................................................................................................. 4 NETWORK SETUP ......................................................................................................... 5 Local Network (LAN)................................................................................................................ 5 SBC (Session Border Controller) ..................................................................................
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 ........................................................
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.
NETWORK SETUP In this tutorial, we will use three network setups including LAN, SBC and STUN. Local Network (LAN) 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 IP: 192.168.5.136 IP: 192.168.5.212 Switch 3CX Phone System IP: 192.168.5.
Internet Router Router Switch Switch IP: 192.168.6.225 3CX Phone System FQDN: gstest.3cx.eu Private IP: 192.168.5.116 3CX SBC IP: 192.168.6.31 Figure 2: Remote Phone Located Behind SBC Remote STUN Grandstream Devices support STUN mode in SIP Network Settings, allowing them to communicate with 3CX Phone System across the WAN.
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.
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.
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.
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. MPK / VPK Configuration 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.
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). Figure 7: BLF Key 5. In Accounts dropdown list, select the account to use with this VPK. 6. In Description field, enter a name to be displayed for this key. 7. In Value field, enter the extension SIP user ID to monitor. 8. Click on Save and Apply to submit changes.
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.
Figure 9: Outbound Proxy setting 7. Click on Save and Apply to register the extension with 3CX Phone System as tunneled via 3CX SBC. Remote Devices using STUN To configure a remote Grandstream device using STUN, follow below instructions: 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.
Figure 10: Configure Remote extension via STUN 6. Once saved, navigate to Network Settings and set NAT Traversal to “STUN”. Figure 11: NAT Traversal set 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).
Figure 12: General Settings – STUN server 8. Press Save and Apply to register the device 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.
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). Figure 14: Assign Extension to Phone 4. Users can configure advanced options on the device during provisioning such as voice codecs, Forwarding Rules, BLF… as shown in below figure.
Figure 15: Configuring BLF 5. Press OK to save the configuration. 6. Once applied, the phone will be rebooted and get provisioned automatically with provisioning URL on its configuration server path. Add New Device 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. To add a new device to 3CX Phone System, follow below steps: 1. Log in to the 3CX Phone System and go to Phones panel.
Remote Devices using 3CX SBC To auto-provision Grandstream devices located behind a 3CX SBC, follow below steps: 1. Log in to the remote 3CX Phone System and go to Phones panel. 2. 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). Devices behind SBC will be marked with “via SBC” in IP column as show in below figure. Figure 17: Devices behind SBC 3.
Figure 18: Provisioning via SBC Remote Devices using STUN To configure remote extensions using STUN, follow below steps: 1. Log in to the 3CX Phone System and go to Phones panel. 2. Click on Add Phone, and choose an extension to assign. 3. Choose the device’s model from available models list, and enter its MAC address as shown in below figure.
Figure 19: Add Phone via MAC address 4. In “Phone Provisioning” tab, set the following: o Provisioning Method: Direct SIP (STUN – remote) o MAC Address: Leave as preconfigured (MAC address of the phone entered). o Select Interface: 3CX FQDN preconfigured (in this example: “gstest.3cx.eu”). o Local SIP Port of Phone: set the local SIP port used by the phone. o Local RTP Audio Ports Start: Leave as preconfigured “14000”. o Local RTP Audio Ports End: Leave as preconfigured “14009”. 5.
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”). Figure 21: Phone Configuration using STUN 8.