NeoGate Solutions

Solutions V1.1

Date: Sep, 2014

Yeastar Information Technology Co., Ltd.

http://www.yeastar.com 1/175

NeoGate Solutions

Table of Contents

NeoGate TA Series ...... 3

1 How to connect NeoGate TA FXS Gateway and Elastix? ...... 3

2 How to connect NeoGate TA FXS Gateway and MyPBX? ...... 14

3 How to connect NeoGate TA FXS Gateway and 3CX Phone System? ...... 25

4 How to configure Skype for Business on NeoGate TA FXS gateway? ...... 36

5 How to connect NeoGate TA FXS Gateway and ? ...... 43

NeoGate TG Series ...... 56

1. How to connect Elastix to NeoGate TG Series ...... 56

2. How to connect MyPBX to NeoGate TG Series ...... 65

3. How to connect Lync server 2013 to NeoGate TG series ...... 69

4. How to connect 3CX to NeoGate TG series ...... 101

5. How to connect Trixbox to NeoGate TG Series ...... 111

NeoGate TE Series ...... 119

1. How to connect Elastix to NeoGate TE Series ...... 119

2. How to connect MyPBX to TE Series ...... 128

3. How to connect 3CX to NeoGate TE Series ...... 136

4. How to connect Lync server 2013 to NeoGate TE Series ...... 145

http://www.yeastar.com 2/175

NeoGate Solutions

NeoGate TA Series

1 How to connect NeoGate TA FXS Gateway and Elastix?

1.1 Introduction

This application note shows how to connect Elastix to NeoGate TA FXS gateway. This guide has been tested with NeoGate TA3200 and Elastix firmware version: 2.4.0. Two modes are available for NeoGate TA to connect to Elastix, we call them VoIP trunk mode and Service Provider SIP/IAX trunk mode (SPS/SPX). *You can simply choose one mode to achieve the connection.

Target: After connecting NeoGate TA3200 and Elastix, FXS extensions will be extended on Elastix. Once the FXS ports are connected to Elastix, the phones connected to the FXS ports will be treated as Elastix FXS extensions. The following features can be achieved: 1. Make calls between the analog phone and Elastix SIP extension; 2. Receive incoming calls on the analog phones; 3. Make external calls from the analog phones using trunks on Elastix.

Description: IP address of Elastix: 192.168.5.178 IP address of NeoGate TA3200: 192.168.5.13

Figure 1-1. Connect Elastix and NeoGate TA3200

http://www.yeastar.com 3/175

NeoGate Solutions

1.2 Preparation

NeoGate TA3200 attempts to contact a DHCP server in your network to obtain valid network settings (e.g., the IP address, subnet mask, default gateway address and DNS address) by default. Before connecting NeoGate TA3200 to Elastix, you need to set a static IP address from the same LAN with the Elastix.

Steps to set static IP for NeoGate TA3200:

1. Connect one analog phone in one of the FXS ports on NeoGate TA3200; 2. Dial "***" to enter the voice menu; 3. Press "1" to check the IP address; 4. Open the browser and type in the TA3200's IP address to access TA3200; 5. Log in TA3200 and go to System→Network Preferences→LAN Settings, disable DHCP and configure the LAN network, save and apply the changes, reboot NeoGate TA3200 to take effect.

Figure 1-2. Configure LAN Settings on NeoGate TA3200

1.3 VoIP Mode

If you choose VoIP mode, the FXS ports will be registered as the Elastix's SIP extensions, whose functions are the same with other SIP extensions on Elastix.

Figure 1-3. Connect TA3200 and Elastix via VoIP Mode http://www.yeastar.com 4/175

NeoGate Solutions

Step 1. Create a SIP extension on Elastix.

Path: PBX→Extensions→Add Extension

Create an extension on Elastix for the FXS port on the TA3200 which has connected an analog phone. Here we take extension 9000 for example.

Figure 1-4. Create Extension 9000 on Elastix Step 2. Configure one VoIP server template on NeoGate TA3200.

Path: Gateway→VoIP Settings→VoIP Server Settings

Check "Enable Register", fill in the Elastix IP address; this VoIP server template will be a VoIP mode template.

http://www.yeastar.com 5/175

NeoGate Solutions

Figure 1-5. Configure the VoIP Server Template as VoIP Mode

Server Name: Elastix Type: SIP Enable Register: checked Transport: UDP Hostname/IP: fill in the Elastix IP address, 192.168.5.178 Domain: fill in the Elastix IP address, 192.168.5.178

Step 3. Edit the Dial Pattern Template

Path: Gateway→VoIP Settings→VoIP Server Settings

The default dial pattern is set as ".", which allows you to dial any number out. In this guide, we will remain the default setting. You can change it according to your environment.

Figure 1-6. Edit Dial Pattern Template

Step 4. Edit the FXS port

Path: Gateway→FXS Port List→FXS Port List

http://www.yeastar.com 6/175

NeoGate Solutions

Figure 1-7. Edit the FXS Port

Primary Server: choose “Elastix(3)”, the VoIP server template configured in Step 2. User Name: the extension username on Elastix, 9000. Authentication Name: the extension authentication name on Elastix, 9000. Password: the authentication password of the extension on Elastix, pincode9000. Dial Pattern Template: choose the Dial Pattern Template: DialPatternTemplate1(1).

Save and apply the changes, and you will see the port status is “Registered” on "Port Status" page. Path: Status→System Status→Port Status

Figure 1-8. Port Status

Now, you are able to use the analog phone which is connected to NeoGate TA's FXS port 1 to make calls and receive calls. Note: ALL outgoing calls to Elastix extensions and to external numbers through trunks on Elastix should match the dial pattern, or calls will fail.

1.4 SPS/SPX Mode

If you choose this mode to connect NeoGate TA3200 and Elastix, the FXS port will be registered as a Service Provider SIP/IAX (SPS/SPX) trunk to the Elastix. One SPS/SPX trunk to NeoGate TA also should be created on Elastix. In this guide, we use SIP protocol, configure one VoIP server template as SPS mode on NeoGate TA3200 and create one http://www.yeastar.com 7/175

NeoGate Solutions

Service Provider SIP trunk on Elastix.

Figure 1-9. Connect TA3200 and Elastix via SPS Mode

Step 1. Create a Service Provider SIP Trunk on Elastix

Path: PBXTrunksAdd SIP Trunk

Figure 1-10. Add SIP Trunk

http://www.yeastar.com 8/175

NeoGate Solutions

Figure 1-11. Configure SIP Trunk PEER Details: host=192.168.5.13 type=peer qualify=yes disallow=all allow=ulaw,alaw,gsm

After creating the SIP trunk, we can check the status of this trunk, it should be OK. Path: PBXTools Enter the command “sip show peers” and click “Execute”, the status will be seen.

http://www.yeastar.com 9/175

NeoGate Solutions

Figure 1-12. SIP Trunk Status

Step 2. Edit one VoIP Server template as SPS mode.

Path: Gateway→VoIP Settings→VoIP Server Settings

Do not check "Enable Register", choose SIP protocol, and fill in the Elastix IP address, the VoIP server template will be configured as SPS mode.

Figure 1-13. Configure the VoIP Server Template as SPS Mode

Server Name: Elastix Type: SIP Enable Register: DO NOT check Transport: UDP Hostname/IP: fill in Elastix IP address, 192.168.5.178 Domain: fill in Elastix IP address, 192.168.5.178

Step 3. Edit the Dial Pattern Template Path: Gateway→VoIP Settings→VoIP Server Settings

The default dial pattern is set as ".", which allows you to dial any number out. In this guide,

http://www.yeastar.com 10/175

NeoGate Solutions we will remain the default setting. You can change it according to your environment.

Figure 1-14. Edit the Dial Pattern Template

Step 4. Edit the FXS port

Path: Gateway→FXS Port List→FXS Port List

Figure 1-15. Edit the FXS Port

Number: set a number for the FXS port. The number should be different from the extension numbers on Elastix. Here we set number 100 for FXS port 2. Primary Server: choose Elastix(4), the VoIP server template configured on step 2. Dial Pattern Template: choose the Dial Pattern Template, DialPatternTemplate1(1). Note: You don't need to fill in any authentication name and authentication password on the FXS port edit page if you choose SPS/SPX mode.

After saving and applying the changes, you will see the trunk is “OK” in “Line Status”.

http://www.yeastar.com 11/175

NeoGate Solutions

Path: StatusSystem StatusPort Status

Figure 1-16. FXS Port Status

Step 5. Create an inbound route on Elastix.

Path: PBX→Inbound Routes→Add Incoming Route

Choose the inbound destination as IVR, when you call in Elastix from NeoGate TA3200, you will hear the IVR prompt. The inbound route configured here matches DID number 9999, users from NeoGate TA3200 should dial 9999 to reach Elastix.

http://www.yeastar.com 12/175

NeoGate Solutions

Figure 1-17. Add Incoming Route

Step 5. Create one outbound route on Elastix.

To make calls from Elastix to NeoGate TA3200, you need to create one outbound route on Elastix.

Path: PBX→Outbound Routes→Add Route

http://www.yeastar.com 13/175

NeoGate Solutions

Figure 1-18. Add Outbound Route

Set the prefix as 9, choose the trunk "NeoGate" which is created above, then users should dial 9+number to call the phone which is connected to NeoGate TA3200. In this guide, you should dial 9100 to call the phone which is connected to TA3200 FXS port 2.

2 How to connect NeoGate TA FXS Gateway and MyPBX?

2.1 Introduction

This guide has been tested with NeoGate TA3200 and MyPBX U100. Two modes are available for NeoGate TA to connect to MyPBX, we call them VoIP trunk mode and Service Provider SIP/IAX trunk mode (SPS/SPX). *You can simply choose one mode to achieve the connection.

http://www.yeastar.com 14/175

NeoGate Solutions

Target: After connecting NeoGate TA3200 and MyPBX, FXS extensions will be extended on MyPBX. Once the FXS ports are connected to MyPBX, the phones connected to the FXS ports will be treated as MyPBX FXS extensions. The following features can be achieved: 1. Make calls between the analog phones and MyPBX SIP extensions; 2. Receive inbound calls on the analog phones; 3. Make outbound calls from the analog phones using trunks on MyPBX.

Description: IP address of MyPBX: 192.168.5.250 IP address of NeoGate TA3200: 192.168.5.45

Figure 2-1. Connect MyPBX and NeoGate TA3200

2.2 Preparation

NeoGate TA3200 attempts to contact a DHCP server in your network to obtain valid network settings (e.g., the IP address, subnet mask, default gateway address and DNS address) by default.

Before connecting NeoGate TA3200 to MyPBX, you need to set a static IP address from the same LAN with the MyPBX.

Steps to set static IP for NeoGate TA3200:

1. Connect one analog phone to one of the FXS ports on NeoGate TA3200; 2. Dial "***" to enter the voice menu; 3. Press "1" to check the IP address; 4. Open the browser and type in the TA3200's IP address to access TA3200; 5. Log in TA3200 and go to System→Network Preferences→LAN Settings, disable DHCP http://www.yeastar.com 15/175

NeoGate Solutions and configure the LAN network, save and apply the changes, reboot NeoGate TA3200 to take effect.

Figure 2-2. Configure LAN Settings on NeoGate TA3200

2.3 VoIP Mode

If you choose VoIP mode, the FXS ports will be registered as the MyPBX's SIP extensions, which possess the same functions as other SIP extensions on MyPBX.

Figure 2-3. Connect TA3200 and MyPBX via VoIP Mode

Step 1. Create a SIP extension on MyPBX.

Path: PBX→Extensions→FXS/VoIP Extensions→Add Extension

Create an extension on MyPBX for the FXS port on the TA3200 which has connected an analog phone. Here we take extension 305 for example.

http://www.yeastar.com 16/175

NeoGate Solutions

Figure 2-4. Create Extension 305 on MyPBX

Step 2. Configure one VoIP server template on NeoGate TA3200.

Path: Gateway→VoIP Settings→VoIP Server Settings

Check "Enable Register", fill in the MyPBX's IP address, this VoIP server template will be a VoIP mode template.

http://www.yeastar.com 17/175

NeoGate Solutions

Figure 2-5. Configure the VoIP Server Template as VoIP Mode

Server Name: MyPBX Type: SIP Enable Register: checked Transport: UDP Hostname/IP: fill in the MyPBX IP address, 192.168.5.250 Domain: fill in the MyPBX IP address, 192.168.5.250

Step 3. Edit the Dial Pattern Template

Path: Gateway→VoIP Settings→VoIP Server Settings

The default dial pattern is set as ".", which allows you to dial any number out. In this guide, we will remain the default setting. You can change it according to your environment.

Figure 2-6. Edit Dial Pattern Template

Step 4. Edit the FXS port

Path: Gateway→FXS Port List→FXS Port Lis

http://www.yeastar.com 18/175

NeoGate Solutions

Figure 2-7. Edit the FXS Port

Number: the extension number as the one you created on MyPBX, 305. Primary Server: choose MyPBX(1), the VoIP server template configured in Step 2. User Name: the extension username on MyPBX, 305. Authentication Name: the extension authentication name on MyPBX, 305. Password: the authentication password of the extension on MyPBX, Cdzpoo732. Dial Pattern Template: choose the Dial Pattern Template, DialPatternTemplate1(1).

Save and apply the changes, and you will see the port status is “Registered” on "Port Status" page. Path: Status→System Status→Port Status

Figure 2-8. Port Status Now, you are able to use the analog phone which is connected to NeoGate TA's FXS port 1 to make calls and receive calls.

Note: Outgoing calls to MyPBX extensions and to external numbers through trunks on MyPBX all should match the dial pattern, or the calls will fail.

http://www.yeastar.com 19/175

NeoGate Solutions

2.4 SPS/SPX Mode

If you choose this mode to connect NeoGate TA3200 and MyPBX, the FXS port will be registered as a Service Provider SIP/IAX (SPS/SPX) trunk to the MyPBX. One SPS/SPX trunk to NeoGate TA also should also be created on MyPBX. In this guide, we use SIP protocol, configure one VoIP server template as SPS mode on NeoGate TA3200 and create one Service Provider SIP trunk on MyPBX.

Figure 2-9. Connect TA3200 and MyPBX via SPS Mode

Step 1. Create a Service Provider SIP Trunk on MyPBX

Path: PBXTrunksVoIP TrunkService Provider

Figure 2-10. Add a SIP Trunk

Type: SIP http://www.yeastar.com 20/175

NeoGate Solutions

Provider Name: NeoGate_TA3200 Hostname/IP: fill in NeoGate TA3200's IP address, 192.168.5.45.

Save and apply the changes, we can check the status of this trunk, it should be OK. Path: StatusLine StatusTrunk Status

Figure 2-11. SIP Trunk Status

Step 2. Edit one VoIP Server template as SPS mode.

Path: Gateway→VoIP Settings→VoIP Server Settings

Do not check "Enable Register", choose SIP protocol, and fill in the MyPBX IP address, the VoIP server template will be configured as SPS mode.

Figure 2-12. Configure the VoIP Server Template as SPS Mode

Server Name: MyPBX Type: SIP Enable Register: DO NOT check Transport: UDP Hostname/IP: fill in MyPBX's IP address, 192.168.5.250 Domain: fill in MyPBX's IP address, 192.168.5.250

Step 3. Edit the Dial Pattern Template

Path: Gateway→VoIP Settings→VoIP Server Settings The default dial pattern is set as ".", which allows you to dial any number out. In this guide,

http://www.yeastar.com 21/175

NeoGate Solutions we will remain the default setting. You can change it according to your environment.

Figure 2-13. Edit the Dial Pattern Template Step 4. Edit the FXS port

Path: Gateway→FXS Port List→FXS Port List

Figure 2-14. Edit the FXS Port

Number: set a number for the FXS port. The number should be different from the extension numbers on MyPBX. Here we set number 500 for FXS port 1. Primary Server: choose MyPBX(1), the VoIP server template configured on Step 2. Dial Pattern Template: choose the Dial Pattern Template, DialPatternTemplate1(1).

Note: You don't need to fill in any authentication name and authentication password on the FXS port edit page if you choose SPS/SPX mode.

http://www.yeastar.com 22/175

NeoGate Solutions

After saving and applying the changes, you will see the trunk is “OK” in “Line Status”. Path: StatusSystem StatusPort Status

Figure 2-15. FXS Port Status Now, you can call MyPBX extensions directly.

Step 4. Make external calls from TA3200.

If you want to make external calls from TA3200 through the trunk on MyPBX, you should create an inbound route on MyPBX.

Figure 2-16. Add an Outbound Route

Route Name: define a name for the inbound route, From_TA3200. Selected Trunks: select the trunk connected to TA3200, which is created on step 1, NeoGate_TA3200. Office Hours Destination: choose "Outbound Routes", and select one outbound route, here we choose outbound route "pstnout" to allow the external call goes through the PSTN line. Non-office Hours Destination: choose "Outbound Routes", and select one outbound route, here we choose outbound route "pstnout" to allow the external call goes through

http://www.yeastar.com 23/175

NeoGate Solutions the PSTN line.

Figure 2-17. Outbound Route "pstnout"

To make outbound calls from TA3200, you should dial the number which matches the dial pattern on TA3200 and the dial pattern on MyPBX outbound route. In this guide, the dial pattern on TA3200 is ".", which allows any number; the dial pattern on MyPBX outbound route is "9.". So you need to dial "9" before the phone number to make a successful outbound call through the PSTN line.

Step 5. Make calls from MyPBX to TA3200.

To make calls from MyPBX to NeoGate TA3200, you need to create one outbound route on MyPBX.

Path: PBX→Outbound Call Control→Outbound Routes

http://www.yeastar.com 24/175

NeoGate Solutions

Figure 2-18. Add Outbound Route

Set the dial pattern as X., choose the trunk "NeoGate_TA3200" which is created above. In this guide, you should dial 500 to call the phone which is connected to TA3200 FXS port 1.

3 How to connect NeoGate TA FXS Gateway and 3CX Phone

System?

3.1 Introduction

This application note shows how to connect 3CX Phone System to NeoGate TA FXS gateway. This guide has been tested with NeoGate TA3200 and 3CX firmware version: 12.0.35528.640. Two modes are available for NeoGate TA to connect to 3CX, we call them VoIP trunk mode and Service Provider SIP/IAX trunk mode (SPS/SPX). *You can simply choose one mode to achieve the connection.

Target: After connecting NeoGate TA3200 and 3CX, FXS extensions will be extended on 3CX phone system. Once the FXS ports are connected to 3CX phone system, the phones http://www.yeastar.com 25/175

NeoGate Solutions connected to the FXS ports will be treated as 3CX Phone system's extensions. The following features can be achieved: 1. Make calls between the analog phone and SIP extension on 3CX phone system; 2. Receive incoming calls on the analog phones; 3. Make external calls from the analog phones using trunks on 3CX phone system.

Description: IP address of 3CX Phone System: 192.168.2.152 IP address of NeoGate TA800: 192.168.2.125

Figure 3-1. Connect 3CX Phone System and NeoGate TA3200

3.2 Preparation

NeoGate TA3200 attempts to contact a DHCP server in your network to obtain valid network settings (e.g., the IP address, subnet mask, default gateway address and DNS address) by default.

Before connecting NeoGate TA3200 to 3CX phone system, you need to set a static IP address from the same LAN with the 3CX phone system. Steps to set static IP for NeoGate TA3200:

1. Connect one analog phone in one of the FXS ports on NeoGate TA3200; 2. Dial "***" to enter the voice menu; 3. Press "1" to check the IP address; 4. Open the browser and type in the TA3200's IP address to access TA3200; 5. Log in TA3200 and go to System→Network Preferences→LAN Settings, disable DHCP and configure the LAN network, save and apply the changes, reboot NeoGate TA3200 to take effect.

http://www.yeastar.com 26/175

NeoGate Solutions

Figure 3-2. Configure LAN Settings on NeoGate TA3200

3.3 VoIP Mode

If you choose VoIP mode, the FXS ports will be registered as the 3CX's SIP extensions, whose functions are the same with other SIP extensions on 3CX.

Figure 3-3. Connect TA3200 and 3CX Phone System via VoIP Mode

Step 1. Create a SIP extension on 3CX phone system.

Create an extension on 3CX phone system for the FXS port on the TA3200 which has connected an analog phone. Here we take extension 100 for example.

Figure 3-4. Create Extension 9000 on 3CX Phone System

Step 2. Configure one VoIP server template on NeoGate TA3200. http://www.yeastar.com 27/175

NeoGate Solutions

Path: Gateway→VoIP Settings→VoIP Server Settings

Check "Enable Register", fill in the 3CX phone system IP address, this VoIP server template will configured as a VoIP mode template.

Figure 3-5. Configure the VoIP Server Template as VoIP Mode

Server Name: 3CX Type: SIP Enable Register: checked Transport: UDP Hostname/IP: fill in the 3CX phone system IP address, 192.168.2.152 Domain: fill in the 3CX phone system IP address, 192.168.2.152

Step 3. Edit the Dial Pattern Template

Path: Gateway→VoIP Settings→VoIP Server Settings

The default dial pattern is set as ".", which allows you to dial any number out. In this guide, we will remain the default setting. You can change it according to your environment.

Figure 3-6. Edit Dial Pattern Template

Step 4. Edit the FXS port

http://www.yeastar.com 28/175

NeoGate Solutions

Path: Gateway→FXS Port List→FXS Port List

Figure 3-7. Edit the FXS Port Primary Server: choose “3CX(1)”, the VoIP server template configured in Step 2. User Name: the extension username on 3CX phone system, 100. Authentication Name: the extension authentication name on 3CX phone system, 100. Password: the authentication password of the extension on 3CX phone system, 64s4m99. Dial Pattern Template: choose the Dial Pattern Template DialPatternTemplate1(1).

Save and apply the changes, and you will see the port status is „Registered‟ on "Port Status" page. Path: Status→System Status→Port Status

Figure 3-8. Port Status Now, you are able to use the analog phone which is connected to NeoGate TA's FXS port 1 to make calls and receive calls. Note: All outgoing calls to 3CX extensions and to external numbers through trunks on 3CX should match the dial pattern, or calls will be failed.

3.4 SPS/SPX Mode

If you choose this mode to connect NeoGate TA3200 and 3CX phone system, the FXS port will be registered as a Service Provider SIP/IAX (SPS/SPX) trunk to the 3CX phone system. http://www.yeastar.com 29/175

NeoGate Solutions

One SPS/SPX trunk to NeoGate TA also should be created on 3CX phone system. In this guide, we use SIP protocol, configure one VoIP server template as SPS mode on NeoGate TA3200 and create one Service Provider SIP trunk on 3CX phone system.

Figure 3-9. Connect TA3200 and 3CX Phone System via SPS Mode

Step 1. Create a Service Provider SIP Trunk on 3CX phone system.

1) Click "Add VoIP Provider", configure the VoIP Provider Wizard, then Click "Next".

Figure 3-10. Add VoIP Provider

Name of Provider: NeoGate_TA3200 Country: Generic Provider: Generic SIP Trunk

2) Enter the NeoGate TA3200's IP and click "Next".

http://www.yeastar.com 30/175

NeoGate Solutions

Figure 3-11. VoIP Provider

3) Enter External Number and Authentication ID (You can enter any number as long as it is not the same with extension numbers of 3CX, take 9999 as an example here). And click “Next”. Note: "Maximum simultaneous calls " is four in the free version of 3CX. You can also enter the number accordingly if you have bought license from 3CX.

Figure 3-12. Configure SIP Trunk

4) Configure the default destination of inbound route to IVR for the SIP trunk and click “Next”. Note: If you want to change the inbound route, you can double click the trunk you want on the "Ports/Trunk Status" page after the SIP Trunk has been created.

Figure 3-13. Set Office Hours

5) Click "Skip" to finish the SIP trunk configuration.

http://www.yeastar.com 31/175

NeoGate Solutions

Figure 3-14. VoIP Provider 6) On "Ports/Trunk status" page, we can check the trunk status.

Figure 3-15. SIP Trunk Status Step 2. Edit one VoIP Server template as SPS mode.

Path: Gateway→VoIP Settings→VoIP Server Settings

Do not check "Enable Register", choose SIP protocol, and fill in the 3CX phone system's IP address, the VoIP server template will be configured as SPS mode.

Figure 3-16. Configure the VoIP Server Template as SPS Mode

http://www.yeastar.com 32/175

NeoGate Solutions

Server Name: 3CX Type: SIP Enable Register: DO NOT check Transport: UDP Hostname/IP: fill in 3CX phone system's IP address, 192.168.2.152 Domain: fill in 3CX phone system's IP address, 192.168.2.152

Step 3. Edit the Dial Pattern Template

Path: Gateway→VoIP Settings→VoIP Server Settings

The default dial pattern is set as ".", which allows you to dial any number out. In this guide, we will remain the default setting. You can change it according to your environment.

Figure 3-17. Edit the Dial Pattern Template

Step 4. Edit the FXS port

Path: Gateway→FXS Port List→FXS Port List

http://www.yeastar.com 33/175

NeoGate Solutions

Figure 3-18. Edit the FXS Port

Number: set a number for the FXS port. The number should be different from the extension numbers on 3CX phone system. Here we set number 500 for FXS port 1. Primary Server: choose “3CX(1)”, the VoIP server template configured on step 2. Dial Pattern Template: choose the Dial Pattern Template, DialPatternTemplate1(1). Note: You don't need to fill in any authentication name and authentication password on the FXS port edit page if you choose SPS/SPX mode.

After saving and applying the changes, you will see the trunk is “OK” in “Line Status”. Path:StatusSystem StatusPort Status

Figure 3-19. FXS Port Status

Step 5. Configure the inbound route on 3CX phone system.

Click “Create DID” to configure the inbound route on 3CX.

http://www.yeastar.com 34/175

NeoGate Solutions

Figure 3-20. Create DID on 3CX Phone System

Inbound route name: From_NeoGateTA3200 DID/DDI number/mask: 9999, which is the same with the trunk external number. Available ports: NeoGate_TA3200 Office Hours: Connect to Digital Receptionist

Now you can make calls from the phone which is connected to TA3200 FXS port1 to 3CX phone system by dialing number 9999. The call will reach the IVR 800.

Step 6. Create an outbound rule on 3CX phone system.

Click "Create Outbound" on 3CX phone system.

Figure 3-21. Add Outbound Route

Rule Name: To_NeoGate_TA3200 Prefix: 9 Call from extension(s): 100-105 Route: NeoGate_TA3200 Strip: 1

http://www.yeastar.com 35/175

NeoGate Solutions

Now, extensions from 100 to 105 on 3CX phone system are allowed to make calls to the phone which is connected to NeoGate TA3200 FXS port 1. To call the phone, you should dial 9500.

4 How to configure Skype for Business on NeoGate TA FXS gateway?

4.1 Introduction

Skype Connect™ provides connectivity between your business and the Skype community.

NeoGate TA FXS Gateway helps you to connect to Skype via Skype Connect. By adding Skype Connect to NeoGate TA, your business could save on your communication costs with little or no additional upgrades required. Once the Skype SIP trunk is registered on NeoGate TA, you are able to make and receive calls on the analog phones through the Skype SIP trunk.

This guide has been tested with NeoGate TA3200 and describes how to connect NeoGate TA to Skype with Skype Connect.

Figure 4-1 Connect NeoGate TA3200 to Skype

4.2 Register Skype SIP Trunk on TA3200

Before configurations on NeoGate TA3200, you need to set up a Skype Manager and buy a SIP profile from Skype. Please refer to Skype Connect Quick Start Guide to set up the SIP profile on Skype. After setting up the SIP profile, take the SIP account to register on NeoGate TA3200.

Step 1. Edit the VoIP Server template on the NeoGate TA3200.

http://www.yeastar.com 36/175

NeoGate Solutions

Path: Gateway→VoIP Settings→VoIP Server Settings

Figure 4-2 Edit the VoIP Server Template on TA3200

Server Name: Skype Type: SIP Enable Register: enable Transport: UDP Hostname/IP: sip.skype.com Domain: sip.skype.com

Step 2. Edit the Dial Pattern Template.

Path: Gateway→VoIP Settings→Dial Pattern Template

Set the Dial pattern as "0.", which matches any phone number starts with digit "0".

Figure 4-3 Edit the Dial Pattern Template on TA3200

Step 3. Edit the FXS port.

http://www.yeastar.com 37/175

NeoGate Solutions

Path: Gateway→FXS Port List→FXS Port List Choose the Primary Server Template as the one you edited on Step 1 and fill in the Username and Password info according to the SIP profile on Skype.

Figure 4-4 SIP Profile on Skype Manager Page

Figure 4-5 Edit FXS Port 1

http://www.yeastar.com 38/175

NeoGate Solutions

Number: Same as SIP User on Skype SIP profile. Primary Server: Choose “Skype(1)”, the VoIP that you configured on step 1. User Name: Same as SIP User on Skype SIP profile. Authentication Name: Same as SIP User on Skype SIP profile. Password: Same as Password on Skype SIP profile. Template: choose “Skype_Out(1)”, the one you edited on Step 2.

Save and apply the changes, and you will see the port 1 status is “Registered” on "Port Status" page.

Path: Status→System Status→Port Status

Figure 4-6 Status of FXS Port 1 on TA3200

http://www.yeastar.com 39/175

NeoGate Solutions

Step 4. Make a call from the analog phone which is connected the FXS port 1.

You can call 001760-660-4690 to test audio quality and connectivity. It‟s Skype‟s echo test online number. Note: If you want to receive inbound calls with Skype Connect, please proceed to Chapter 2; if not, you have now successfully set up your Skype for SIP profile to make outbound calls.

4.3 Configure TA3200 with Inbound Calling

>>Receive Incoming Calls from Skype Users Step 1. Set up a Business Account to test inbound Calls from Skype.

1) Create a new business account in Skype Manager. For more information on creating a new business account, please see the Skype Manager User Guide. 2) Click View profile next to the name of the SIP Profile to which you want to add the business account.

Figure 4-7 View Skype SIP Profile

3) Click Set up incoming calls. 4) In the Add business Account tab, enter the newly created business account's name and fill in the extension number which number will use to receive the call. E.g.: Add an existing business account: yeastar.neogate Extension number: 500

http://www.yeastar.com 40/175

NeoGate Solutions

Figure 4-8 Add Business Account 5) Click Confirm.

Step 2. Set up the online number on the NeoGate TA3200's FXS port.

Online number: fill in the extension number which you configure in Skype Manger.

Figure 4-9 Set Online Number on FXS Port 1

All calls from other Skype users to this account (yeastar.neogate) will be routed to the analog phone which is connected to NeoGate TA3200's FXS port 1.

>>Receive Incoming Calls from Landline or Mobile Phone

Step 1. Assign an Online Number to receive calls from landlines and mobile

http://www.yeastar.com 41/175

NeoGate Solutions phones.

1) Click View profile next to the name of the SIP Profile to which you want to assign an Online Number.

Figure 4-10 View Skype SIP Profile

2) Click Set up incoming calls. 3) Click Buy a new number.

Figure 4-11 Add Skype Number

4) Complete the on-screen instructions to buy the Online Number. For more information on buying a new Online Number, please refer to the Skype Manager User Guide. Note: When you confirm your purchase, the Online Number is automatically associated with the SIP Profile.

Step 2. Set up the Online Number on the NeoGate TA3200's FXS port.

Online number: Fill in the Skype online number which one buy from Skype. E.g.: online number is 05925503309.

http://www.yeastar.com 42/175

NeoGate Solutions

Figure 4-12 Set Online Number on FXS Port 1

When someone calls the online number associated with the SIP profile from a landline or mobile phone, the call will be routed to the analog phone which is connected to TA3200's FXS port 1.

5 How to connect NeoGate TA FXS Gateway and Trixbox?

5.1 Introduction

This application note shows how to connect Trixbox to NeoGate TA FXS gateway. This guide has been tested with NeoGate TA3200 and Trixbox firmware version: 2.8.0.4. Two modes are available for NeoGate TA to connect to Trixbox, we call them VoIP trunk mode and Service Provider SIP/IAX trunk mode (SPS/SPX). *You can simply choose one mode to achieve the connection.

Target: After connecting NeoGate TA3200 and Trixbox, FXS extensions will be extended on Trixbox. Once the FXS ports are connected to Trixbox, the phones connected to the FXS ports will be treated as Trixbox FXS extensions. The following features can be achieved: 1. Make calls between the analog phone and Trixbox SIP extension; 2. Receive incoming calls on the analog phones; 3. Make external calls from the analog phones using trunks on Trixbox. http://www.yeastar.com 43/175

NeoGate Solutions

Description: IP address of Trixbox: 192.168.5.236 IP address of NeoGate TA3200: 192.168.5.13

Figure 5-1. Connect Trixbox and NeoGate TA3200

5.2 Preparation

NeoGate TA3200 attempts to contact a DHCP server in your network to obtain valid network settings (e.g., the IP address, subnet mask, default gateway address and DNS address) by default.

Before connect NeoGate TA3200 to Trixbox, you need to set a static IP address from the same LAN with the Trixbox.

Steps to set static IP for NeoGate TA3200:

1. Connect one analog phone in one of the FXS ports on NeoGate TA3200; 2. Dial "***" to enter the voice menu; 3. Press "1" to check the IP address; 4. Open the browser and type in the TA3200's IP address to access TA3200; 5. Log in TA3200 and go to System→Network Preferences→LAN Settings, disable DHCP and configure the LAN network, save and apply the changes, reboot NeoGate TA3200 to take effect.

http://www.yeastar.com 44/175

NeoGate Solutions

Figure 5-2. Configure LAN Settings on NeoGate TA3200

5.3 VoIP Mode

If you choose VoIP mode, the FXS ports will be registered as the Trixbox's SIP extensions, which possess the same functions as other SIP extensions on Trixbox.

Figure 5-3. Connect TA3200 and Trixbox via VoIP Mode

Step 1. Create a SIP extension on Trixbox.

Path: PBX→Extensions→Add Extension

Create an extension on Trixbox for the FXS port on the TA3200 which has connected an analog phone. Here we take extension 300 for example.

http://www.yeastar.com 45/175

NeoGate Solutions

Figure 5-4. Create Extension 300 on Trixbox

Step 2. Configure one VoIP server template on NeoGate TA3200.

Path: Gateway→VoIP Settings→VoIP Server Settings Check "Enable Register", fill in the Trixbox's IP address, this VoIP server template will be a VoIP mode template.

Figure 5-5. Configure the VoIP Server Template as VoIP Mode

http://www.yeastar.com 46/175

NeoGate Solutions

Server Name: Trixbox Type: SIP Enable Register: checked Transport: UDP Hostname/IP: fill in the Trixbox IP address, 192.168.5.236 Domain: fill in the Trixbox IP address, 192.168.5.236

Step 3. Edit the Dial Pattern Template

Path: Gateway→VoIP Settings→VoIP Server Settings

The default dial pattern is set as ".", which allows you to dial any number out. In this guide, we will remain the default setting. You can change it according to your environment.

Figure 5-6. Edit Dial Pattern Template

Step 4. Edit the FXS port

Path: Gateway→FXS Port List→FXS Port List

Figure 5-7. Edit the FXS Port Number: the extension number as the one you created on Trixbox, 300. Primary Server: choose Trixbox(1), the VoIP server template configured in Step 2. User Name: the extension username on Trixbox, 300.

http://www.yeastar.com 47/175

NeoGate Solutions

Authentication Name: the extension authentication name on Trixbox, 9000. Password: the authentication password of the extension on Trixbox, pincode9000. Dial Pattern Template: Choose the Dial Pattern Template, DialPatternTemplate1(1).

Save and apply the changes, and you will see the port status is “Registered” on "Port Status" page. Path: Status→System Status→Port Status

Figure 5-8. Port Status Now, you are able to use the analog phone which is connected to NeoGate TA's FXS port 1 to make calls and receive calls. Note: Outgoing calls to Trixbox extensions and to external numbers through trunks on Trixbox all should match the dial pattern, or calls will be failed.

5.4 SPS/SPX Mode

If you choose this mode to connect NeoGate TA3200 and Trixbox, the FXS port will be registered as a Service Provider SIP/IAX (SPS/SPX) trunk to the Trixbox. One SPS/SPX trunk to NeoGate TA also should be created on Trixbox. In this guide, we use SIP protocol, configure one VoIP server template as SPS mode on NeoGate TA3200 and create one Service Provider SIP trunk on Trixbox.

Figure 5-9. Connect TA3200 and Trixbox via SPS Mode Step 1. Create a Service Provider SIP Trunk on Trixbox

Path: PBXTrunksAdd SIP Trunk

http://www.yeastar.com 48/175

NeoGate Solutions

Figure 5-10. Add SIP Trunk

http://www.yeastar.com 49/175

NeoGate Solutions

Figure 5-11. Configure SIP Trunk

PEER Details: host=192.168.5.13 type=peer qualify=yes disallow=all context=from-trunk allow=ulaw,alaw,gsm After creating the SIP trunk, we can check the status of this trunk, it should be OK. Path: PBXPBX SettingsToolsSystem AdministrationAsterisk CLI Enter the command “sip show peers” and click “Execute”, the status will be seen.

http://www.yeastar.com 50/175

NeoGate Solutions

Figure 5-12. SIP Trunk Status

Step 2. Edit one VoIP Server template as SPS mode.

Path: Gateway→VoIP Settings→VoIP Server Settings

Do not check "Enable Register", choose SIP protocol, and fill in the Trixbox IP address, the VoIP server template will be configured as SPS mode.

Figure 5-13. Configure the VoIP Server Template as SPS Mode

Server Name: Trixbox Type: SIP Enable Register: DO NOT check Transport: UDP Hostname/IP: fill in Trixbox's IP address, 192.168.5.236 Domain: fill in Trixbox's IP address, 192.168.5.236 Step 3. Edit the Dial Pattern Template

Path: Gateway→VoIP Settings→VoIP Server Settings

http://www.yeastar.com 51/175

NeoGate Solutions

The default dial pattern is set as ".", which allows you to dial any number out. In this guide, we will remain the default setting. You can change it according to your environment.

Figure 5-14. Edit the Dial Pattern Template

Step 4. Edit the FXS port

Path: Gateway→FXS Port List→FXS Port List

Figure 5-15. Edit the FXS Port

Number: set a number for the FXS port. The number should be different from the extension numbers on Trixbox. Here we set number 100 for FXS port 1. Primary Server: choose Trixbox(1), the VoIP server template configured on Step 2. Dial Pattern Template: choose the Dial Pattern Template, DialPatternTemplate1(1). Note: You don't need to fill in any authentication name and authentication password on the FXS port edit page if you choose SPS/SPX mode.

After saving and applying the changes, you will see the trunk is “OK” in “Line Status”. Path:StatusSystem StatusPort Status

http://www.yeastar.com 52/175

NeoGate Solutions

Figure 5-16. FXS Port Status

Step 5. Create an inbound route on Trixbox.

Path: PBX→PBX Settings→Inbound Call Control→Inbound Routes

Choose the inbound destination as IVR, when you call in Trixbox from NeoGate TA3200, you will hear the IVR prompt. The inbound route configured here match DID number 9999, users from NeoGate TA3200 should dial 9999 to reach Trixbox.

http://www.yeastar.com 53/175

NeoGate Solutions

Figure 5-17. Add Incoming Route

Step 5. Create one outbound route on Trixbox.

To make calls from Trixbox to NeoGate TA3200, you need to create one outbound route on Trixbox.

http://www.yeastar.com 54/175

NeoGate Solutions

Path: PBX→PBX Settings→Outbound Routes→Add Route

Figure 5-18. Add Outbound Route

Set the dial pattern as X., choose the trunk "NeoGate_TA3200" which is created above. In this guide, you should dial 100 to call the phone which is connected to TA3200 FXS port 1.

http://www.yeastar.com 55/175

NeoGate Solutions

NeoGate TG Series

1. How to connect Elastix to NeoGate TG Series

1.1 Introduction

This application note shows how to connect Elastix to NeoGate TG via SIP trunking. In this guide, we will take NeoGate TG800 as an example; the same configuration will apply other TG series products.

Target: 1. Make outbound calls from Elastix via the GSM trunks of NeoGate TG directly. 2. Receive calls from GSM trunks of NeoGate TG at Elastix.

Description: IP address of Elastix: 192.168.5.178 IP address of NeoGate TG800: 192.168.5.149

Figure 1-1

http://www.yeastar.com 56/175

NeoGate Solutions

1.2 Connect Elastix to NeoGate TG

1.2.1 Create a Service Provider SIP Trunk on Elastix

Path: PBXTrunksAdd SIP Trunk

Figure 1-2

http://www.yeastar.com 57/175

NeoGate Solutions

Figure 1-3

PEER Details: host=192.168.5.149 type=peer qualify=yes disallow=all allow=ulaw,alaw,gsm After creating the SIP trunk, we can check the status of this trunk, it should be OK. Path: PBXOptionUnembedded freePBX

http://www.yeastar.com 58/175

NeoGate Solutions

Log in the FreePBX Asterisk CLI, enter the command “sip show peers” and click “Execute”, the status will be seen.

Figure 1-4

1.2.2 Create a VoIP Trunk on NeoGate TG

Path: GatewayVoIP SettingsVoIP TrunkAdd VoIP Trunk Choose “Service Provider” mode, and fill in Elastix IP address.

Figure 1-5 Trunk Type: Service Provider Provider Name: Elastix Hostname/IP: 192.168.5.178 After saving and applying the changes, you will see the trunk is “Registered” in “Line Status”. Path:StatusSystem StatusTrunk Status

Figure 1-6

1.3 IP to Mobile

In this section, we will configure outbound call from Elastix through Neogate TG.

http://www.yeastar.com 59/175

NeoGate Solutions

Figure 1-7

1.3.1 Create an Outbound Route on Elastix

Path: PBXOutbound RoutesAdd Route Choose the VoIP trunk "NeoGate_TG" and set the rule for the outbound as the picture shows, which allows users to dial any number.

Figure 1-8

http://www.yeastar.com 60/175

NeoGate Solutions

1.3.2 Create Mobile Group on NeoGate with "Balance" Strategy

There are multiple GSM channels installed in NeoGate TG for outbound calls.

Here is an example: Customer wants to dial external numbers onElastix side through NeoGate TG directly, NeoGate TG should route the call via the GSM trunk which is least used.

Path: GatewayMobile ListMobile Group In this example, we need to choose all GSM channels to right side, as for strategy, we can choose “Balance” mode.

Figure 1-9 Save it and apply the changes.

1.3.3 Create “IP to Mobile” Route

Path: GatewayRoutes SettingsIP to Mobile

http://www.yeastar.com 61/175

NeoGate Solutions

Figure 1-10

Simple Mode: No Choose “Simple Mode” to “No”, you will see the advanced settings. Call Source: SPS-Elastix Call Destination: Mobile Group--All_GSM

The default setting “X.” for “Outbound Dial Pattern” allows users to make any external number out without restriction.

Save it and apply the changes, then you can dial outbound calls from Elastix via NeoGate TG directly.

1.4 Mobile to IP

In this section, we will configure incoming call to Elastix through Neogate TG.

http://www.yeastar.com 62/175

NeoGate Solutions

Figure 1-11

1.4.1 Create a “Mobile to IP” Route on NeoGate TG

Path: GatewayRoutes SettingsMobile to IP

Figure 1-12 Simple Mode: No Choose “Simple Mode” to “No”, you will see the advanced settings. Call Source: Mobile—GSM1. You can select any GSM line or mobile group. Here we select GSM1 as an example. Call Destination: SPS-Elastix. All the calls from GSM1 will be sent to Elastix via this trunk. Hotline: 15105989843. You can enter the number as 15105989843 in this field, which is the SIM card number.

http://www.yeastar.com 63/175

NeoGate Solutions

1.4.2 Create an Inbound Route on Elastix

Figure 1-13

Description: From_NeogateTG DID Number: 15105989843. DID number should be same to the Hotline number which you set in TG‟s Mobile to IP route. Set Destination: IVR-Welcome. The call which DID is 15105989843 will reach the IVR-Welcome.

http://www.yeastar.com 64/175

NeoGate Solutions

1.4.3 Make a Call to Elastix through NeoGate TG

Now we can test incoming calls for Elastix. If you dial the GSM1 number on Neogate TG, the call will be routed to the IVR on Elastix.

Note: If there is no "Hotline" set for "Mobile to IP" route on Neogate TG, when you dial the GSM trunk number on TG, a ring tone will be heard after the call is connected. Then, you dial the number to reach Elastix.

2. How to connect MyPBX to NeoGate TG Series

Introduction

MyPBX can connect to NeoGate for general usage, when done; we can dial outbound calls from MyPBX to outside number via the GSM trunks and receive the calls via NeoGate TG also. In this example: IP of MyPBX: 192.168.4.142 IP of NeoGate TG: 192.168.4.148

2.1 Dial outbound call from MyPBX to NeoGate

1) Create Service provider trunk from MyPBX to NeoGate Click „PBXVoIP TrunkAdd service provider‟ to create a trunk, input the name and IP address like the following picture shows, click „save‟ to save this trunk In this example, the IP of NeoGate TG is 192.168.4.148

Figure 2-1

http://www.yeastar.com 65/175

NeoGate Solutions

We recommend to check the status of this trunk to confirm if it‟s reachable. 2) Create „Outbound route‟ for this „Service provider trunk‟ Click „PBXOutbound route‟, input the name of trunk, dial pattern, choose the extensions and this trunk, click „save‟ and apply the changes there. In this example, the Dial pattern is „ X.‟, which means allow all number you dialed. You can refer to the tip on web interface to get more idea.

Figure 2-2 The configuratios in MyPBX side is finished for oubound calls.

3) Login NeoGate TG, create a service provider trunk to MyPBX side in „GatewayVoIP trunk‟ page. Input the IP of MyPBX, choose „service provider‟ in „trunk type‟ field. Click „save‟ to save the settings. In this example, the IP of MyPBX is 192.168.4.142.

Figure 2-3 We recommend check the status of this trunk in „status‟ page to confirm if it‟s reachable.

http://www.yeastar.com 66/175

NeoGate Solutions

4) Create route in TG side to route the calls from MyPBX to GSM network Click „GatewayIP to Mobile‟, create a new route, choose„sps—MyPBX‟ as the source trunk , choose the mobile GSM trunk group or the exact GSM trunk as the destination.

Figure 2-4 We recommend to check if the GSM trunk or group you have chosen has installed well, you can check it in statuc page, make sure the SIM status is ok. The settings in NeoGate TG side is done, you can pickup the extensions of MyPBX and dial the outside number through GSM network.

2.2 Receive inbound calls from NeoGate to MyPBX

1) Create route in TG side to route calls from GSM to SIP Click „GatewayMobile to IP‟, create a new route, disable the simple mode, choose the GSM trunk or trunk group as source trunk, and the SIP trunk we created as destination trunk, set the Hotline number there, which will be used also in MyPBX side also. In this example, the hotline number is 5503301.

http://www.yeastar.com 67/175

NeoGate Solutions

Figure 2-5 Save and click „apply the changes‟ on web, the settings in TG side are finished.

2) Create inbound route in MyPBX side, choose this SIP trunk, input the DID number as the hotline number at TG side, choose the destiantion. In this exaple, the destination is IVR.

Figure 2-6 Save and apply the changes, then you can dial into MyPBX‟s IVR via the GSM trunk number at NeoGate TG side.

http://www.yeastar.com 68/175

NeoGate Solutions

3. How to connect Lync server 2013 to NeoGate TG series

Introduction

Brief introduction of the Lync Server installed, and the target achieved in this manual.

Brief Introduction: This is a standard version of Lync installed in windows 2008 R2 SP1 standard (64bit). It requires two computers to install, one for DC and the other one for Lync. Since TCP/TLS is supported by Lync only, which doesn't match the general trunks we get like PSTN/SIP (UDP)/BRI/GSM or others, a translator like NeoGate TG is needed to offer GSM channels.

Basic Information: IP of DC: 192.168.5.246 IP of Lync: 192.168.5.247 IP of NeoGate TG: 192.168.4.142 FQDN: lync.yeastar.com (Front end server, SQL and mediation pool are installed here) Account: harry, extension: 800, UPN:[email protected] Default TCP port: 5060 (NeoGate TG), 5068(Lync) IVR/ Queue number of Lync: +888

Targets:

1. Making outbound calls from Lync server via the GSM trunks of NeoGate TG directly. 2. Making inbound calls from GSM trunks to reach the IVR or Queue of Lync 2013.

3.1 Create topology to Lync 2013 and publish it

Open the topology you have got from the builder. If you haven't got one, please create and publish it before adding a new gateway.

This is the window of Lync 2013 Topology Buider:

http://www.yeastar.com 69/175

NeoGate Solutions

Figure 3-1

http://www.yeastar.com 70/175

NeoGate Solutions

Expand “Shared Compoments”, right click “PSTN gateways”, choose “New IP/PSTN Gateway”.

Figure 3-2

Input the FQDN of NeoGate TG, in this example, NeoGate TG‟s IP address is 192.168.4.142.

http://www.yeastar.com 71/175

NeoGate Solutions

Figure 3-3 Click “Next”, keep the default “Enable IPv4”, click “Next”.

Figure 3-4

http://www.yeastar.com 72/175

NeoGate Solutions

You can change the trunk name to NeoGate, or just keep it. Listening port of IP/PSTN gateways: 5060 SIP Transport Protocol: TCP

Figure 3-5

Figure 3-6

http://www.yeastar.com 73/175

NeoGate Solutions

When done, Publish ths new topology directly. Publishing is progressing as the following pictures show. If there is any error, please check the above steps or re-install the central SQL server.

Figure 3-7

Figure 3-8

http://www.yeastar.com 74/175

NeoGate Solutions

Figure 3-9

Publishing wizard is completed.

3.2 Set up rules in Lync Server 2013 Control Panel

3.2.1 Enable user for Lync Server 2013

Note: please create your account in DC first before adding it into Lync Server.

Enable Lync account in “Microsoft Lync Server 2013 Control Panel”. Open “Microsoft Lync Server 2013 Control Panel” and log in.

http://www.yeastar.com 75/175

NeoGate Solutions

Figure 3-10

http://www.yeastar.com 76/175

NeoGate Solutions

Click “Users” to enable the account and assign a number to the user, in this example: User: harry The number is: +800 Click “Enable Users” to start:

Figure 3-11

Click “Enable Users”.

http://www.yeastar.com 77/175

NeoGate Solutions

Figure 3-12 Click “Add”.

Figure 3-13

http://www.yeastar.com 78/175

NeoGate Solutions

Click “Find”. Choose the account “harry” before clicking “OK”.

Assign user to pool: lync.yeastar.com For user's SIP URL to log in the client , we recommend using user‟s email address Telephony: Enterprise Voice Line URL: tel:+800

Figure 3-14

Click “Enable” to save it. Log in the client software with the new account: [email protected] to test if it is successfully added as a Lync Server user.

http://www.yeastar.com 79/175

NeoGate Solutions

Figure 3-15

Open Lync client software and log in lync.yeastar.com using “[email protected]”.

Figure 3-16

http://www.yeastar.com 80/175

NeoGate Solutions

Figure 3-17

3.2.2 Create call rules in control panel

Note: the extension number of Lync Server 2013 starts with “+”. Edit the “Global” dial plan.

http://www.yeastar.com 81/175

NeoGate Solutions

Figure 3-18 Edit the rule of “Keep All”; we need to add a “+” as the prefix.

Figure 3-19 Modify the length to “Any”, add “+” in field “Digits to add”, then click “OK” to save it

http://www.yeastar.com 82/175

NeoGate Solutions

Figure 3-20 You can input the test number to see if the translation rule works fine.

Figure 3-21 Edit the “Voice Policy”“Global”.

http://www.yeastar.com 83/175

NeoGate Solutions

Figure 3-22 Click “Select” and choose the Local into “Associated PSTN Usages”.

Figure 3-23

http://www.yeastar.com 84/175

NeoGate Solutions

Figure 3-24

Figure 3-25 Click “OK” to save it. Edit the “Route” page.

http://www.yeastar.com 85/175

NeoGate Solutions

Figure 3-26 Click “LocalRoute” to start editing.

Figure 3-27

http://www.yeastar.com 86/175

NeoGate Solutions

The default value is: ^(\+1[0-9]{10})$ Click Edit to modify the default pattern to ^(\+\d*)$

Figure 3-28 Click “OK” to save it, and you will see the modified patten as below:

Figure 3-29

http://www.yeastar.com 87/175

NeoGate Solutions

Add the associated trunk:

Figure 3-30 Choose the gateway we created to NeoGate TG, in this example: PstnGateway: 192.168.4.142.

Figure 3-31

http://www.yeastar.com 88/175

NeoGate Solutions

Figure 3-32 Select the assoiciated PSTN Usages:

Figure 3-33 Choose “Local” and “OK” to save it.

http://www.yeastar.com 89/175

NeoGate Solutions

Figure 3-34

Figure 3-35 Click the “PSTN Usage”, make sure the “Routers” is “LocalRoute”, “Policies” is “Global”.

http://www.yeastar.com 90/175

NeoGate Solutions

Figure 3-36

http://www.yeastar.com 91/175

NeoGate Solutions

Edit the “Trunk Configuration” page.

Figure 3-37 Click “Global” to start.

Figure 3-38 Click “Select” to choose the associated PSTN usage for this trunk.

http://www.yeastar.com 92/175

NeoGate Solutions

Figure 3-39 Chose “Local” in this exaple, click “OK” to save it.

Figure 3-40 Click “OK”.

http://www.yeastar.com 93/175

NeoGate Solutions

Figure 3-41 You can see the PSTN usage here, click “Commit”“Commit all” to take effect.

Figure 3-42 Click “Test Voice Routing” to see if our rules are correct.

http://www.yeastar.com 94/175

NeoGate Solutions

Figure 3-43

Test result: Passed. The configuration on Lync Server 2013 is completed.

3.3 Set up rules in NeoGate TG Web interface

3.3.1 Create Service Provider trunk to Lync Server 2013

Create a “Service Provider” SIP trunk: Hostname/IP: the IP of Lync Server 2013 is “192.168.5.247”. Port: 5068 (the default port for TCP protocol) Transport: TCP

Figure 3-44

http://www.yeastar.com 95/175

NeoGate Solutions

Figure 3-45 We can check the status of this trunk in “Line status”“Trunk status” page.

Figure 3-46

Note: TCP protocol is disabled in NeoGate TG by default, you will need to enable it in “VoIP SettingsSIP settings” page in advance, then reboot to take effect.

http://www.yeastar.com 96/175

NeoGate Solutions

3.3.2 Dial external number in Lync Server 2013 through NeoGate TG

There are multiple GSM channels installed in NeoGate TG for outbound calls.

Here is an example: Customer wants to dial external numbers on Lync Server‟s side through NeoGate TG directly, NeoGate TG should route the call via all GSM channels one by one.

Step1. Create a mobile group in NeoGate side with balanced strategy. Click “Gateway”“Mobile list”“Mobile Group” to create that. In this example, we need choose all GSM channels to right side, as for strategy, we can choose “Sequence” mode.

Figure 3-47

Save it and apply the changes.

http://www.yeastar.com 97/175

NeoGate Solutions

Step2. Create “IP to Mobile” route. Click “Gateway”“Routes"“IP to Mobile” to create that.

Figure 3-48

Disable the “Simple Mode” to get the advanced settings. Call Source: choose the sps trunk to Lync 2013 DID Number: +. , remember there is a point after "+” . Call destination: Choose the mobile group we created in Step 1. Outbound Dial pattern: +. , remember there is a point after “+” . Strip: 1, it‟s used to delete the “+” sent by Lync 2013.

Save it and apply the changes, then you can dial outbound calls from client side of Lync server via NeoGate TG directly.

http://www.yeastar.com 98/175

NeoGate Solutions

Figure 3-49

3.3.3 Dial into Lync Server 2013 through NeoGate TG‟s trunk

It‟s supported to route the call from NeoGate TG to Lync Server 2013. In this example, the user can dial into NeoGate TG first, then route the call to IVR or extension of Lync server 2013 directly.

Click “Gateway”“Mobile”, in this example, we can create a new route.

http://www.yeastar.com 99/175

NeoGate Solutions

Figure 3-50

Disable the “Simple Mode” to get the advanced settings. Call Source: Choose the mobile group we created in Step 1. DID Number: +. , remember there is a point after “+”. Call destination: choose the sps trunk to Lync 2013 Hotline: The number NeoGate dial when there is an incoming call, we can input the extension number or IVR/Queue number of Lync 2013, in this example, the number is +888. Outbound Dial pattern: +. , remember there is a point after “+” . It‟s used to allow +888 to dial into Lync server 2013.

Save and apply the changes, you can dial into Lync server 2013 now.

http://www.yeastar.com 100/175

NeoGate Solutions

4. How to connect 3CX to NeoGate TG series

4.1 Introduction

This application note shows how to connect 3CX to NeoGate TG using SIP Trunking. In this guide, we tested NeoGate TG400 with 3CX Phone System v12.0.32127.322; the same configuration will apply to other TG series products. Target: 1. Make outbound calls from 3CX via the GSM trunks of NeoGate TG directly. 2. Receive calls through GSM trunks of NeoGate TG at 3CX.

Description IP address of NeoGate TG400: 192.168.5.158 IP address of 3CX: 192.168.5.148

Figure 4-1

http://www.yeastar.com 101/175

NeoGate Solutions

4.2 Connect 3CX to NeoGate TG

4.2.1 Create a VoIP Trunk on NeoGate TG

Path: Gateway  VOIP Settings  VOIP trunk  Add VOIP Trunk. Choose “Service Provider” mode, and fill in 3CX IP address.

Figure 4-2

Trunk Type: Service Provider Provider Name: 3CX Hostname/IP 192.168.5.148 After saving and applying the changes, you will see the trunk is “Registered” in “Line Status”. Path: StatusSystem StatusTrunk Status

Figure 4-3

http://www.yeastar.com 102/175

NeoGate Solutions

4.2.2 Create a VoIP Trunk on 3CX

1) Add VoIP Provider Wizard, then click "Next".

Figure 4-4

Name of Provider: TG400 Country: Generic Provider: Generic SIP Trunk

2) Enter the TG400‟s IP and click "Next".

http://www.yeastar.com 103/175

NeoGate Solutions

Figure 4-5

3) Enter External Number and Authentication ID (You can enter any number as long as it is not the same with extension numbers of 3CX, take 9999 as an examle here). And click “Next”. Note: "Maximum simultaneous calls " is four in the free version of 3CX. You can also enter the number accordingly if you have bought license from 3CX.

http://www.yeastar.com 104/175

NeoGate Solutions

Figure 4-6

4) Configure the default destination of inbound route to IVR for The SIP Trunking and click “Next”. Note: If you want to change the inbound route, you can double click the trunk you want on the "Ports/Trunk Status" page after the SIP Trunk created.

http://www.yeastar.com 105/175

NeoGate Solutions

Figure 4-7

5) Click “Skip” to finish the SIP trunk configuration.

Figure 4-8

6) On "Ports/Trunk status" page, we can check the trunk status.

http://www.yeastar.com 106/175

NeoGate Solutions

Figure 4-9

4.3 Mobile to IP

In this section, we will configure incoming call to 3CX through NeoGate TG.

Figure 4-10

4.3.1 Create a "Mobile to IP" Route on NeoGate TG

Path: GatewayRoutes SettingsMobile to IP

http://www.yeastar.com 107/175

NeoGate Solutions

Figure 4-11

Simple Mode: No Call Source: Mobile—GSM1. You can select any GSM line or mobile group. Here we select GSM1 as an example. Call Destination: SPS-3CX. All the calls from GSM1 will be sent to 3CX via this trunk. Hotline: 9999. You can enter the number "9999" in this field, which is same with the SIP trunk external number on 3CX.

4.3.2 Configure the Inbound Route on 3CX

Click “Create DID” to configure the inbound route on 3CX. Inbound route name: From TG400 DID/DDI number/mask: 9999, which is same with the trunk external number. Available ports: TG400 Office Hours: IVR 8000

http://www.yeastar.com 108/175

NeoGate Solutions

Figure 4-12

Now we can test incoming calls for 3CX. If you dial the GSM1 number on TG400, the call will be routed to the IVR on 3CX.

4.4 IP to Mobile

In this section, we will configure outbound call from 3CX through NeoGate TG.

Figure 4-13

4.4.1 Create an Outbound Rule on 3CX

Click "Create Outbound Rule" on 3CX. Rule Name: Rule for TG400 Prefix: 9 http://www.yeastar.com 109/175

NeoGate Solutions

Call from extension(s): 1000-1003,1005 Route: TG400 Strip: 1

Figure 4-14

4.4.2 Create a "IP to Mobile" Route on TG400

Path: GatewayRoutes SettingsIP to Mobile

Figure 4-15

Simple Mode: Yes Route Name: From_3CX Call Source: SPS—3CX Call Destination: Mobile—GSM1 http://www.yeastar.com 110/175

NeoGate Solutions

Save it and apply the changes, then you can dial outbound calls from 3CX via NeoGate TG directly.

5. How to connect Trixbox to NeoGate TG Series

5.1 Introduction

This application note shows how to connect TrixBox to NeoGate TG using SIP Trunking. In this guide, we tested NeoGate TG400 with TrixBox; the same configuration will apply to other TG series products. Target: 1. Make outbound calls from TrixBox via the GSM trunks of NeoGate TG directly. 2. Receive calls through GSM trunks of NeoGate TG at TrixBox.

Description IP address of NeoGate TG400: 192.168.5.147 IP address of TrixBox: 192.168.5.236

Figure 5-1

http://www.yeastar.com 111/175

NeoGate Solutions

5.2 Connect TrixBox to NeoGate TG

5.2.1 Create a VoIP Trunk on NeoGate TG

Path: Gateway  VOIP Settings  VOIP trunk  Add VOIP Trunk. Choose “Service Provider” mode, and fill in TrixBox IP address.

Figure 5-2

Trunk Type: Service Provider Provider Name: TrixBox Hostname/IP 192.168.5.236

After saving and applying the changes, you will see the trunk is “Registered” in “Line Status”. Path: StatusSystem StatusTrunk Status

Figure 5-3

5.2.2 Create a VoIP Trunk on TrixBox

Path: PBX ->Admin -> Setup  TrunksAdd SIP Trunk

http://www.yeastar.com 112/175

NeoGate Solutions

Figure 5-4

Trunk Name: TG400 Peer Detail: host=192.168.5.147 type=peer context=from-trunk qualify=yes disallow=all allow=ulaw,alaw,gsm

After creating SIP Trunking, we can check the trunk status, it should be OK. Path: PBX  Admin  Tools  Asterisk CLI Enter the command „sip show peers‟ and click „Execute‟.

Figure 5-5

http://www.yeastar.com 113/175

NeoGate Solutions

5.3 Mobile to IP

In this section, we will configure incoming call to TrixBox through NeoGate TG.

Figure 5-6

5.3.1 Create a "Mobile to IP" Route on NeoGate TG

Path: GatewayRoutes SettingsMobile to IP

Simple Mode: No Call Source: Mobile—GSM1. You can select any GSM line or mobile group. Here we select GSM1. Call Destination: SPS-TrixBox. All the calls from GSM1 will be sent to TrixBox via this trunk. Hotline: 15105989843. You can enter the number as 15105989843 in this field, which is the SIM card number.

http://www.yeastar.com 114/175

NeoGate Solutions

Figure 5-7

5.3.2 Create an Inbound Route on TrixBox

Path: PBX  Admin  Setup  Inbound Routes

Description: From_TG400 DID Number: 15105989843. DID number should be same to the Hotline number which you set in TG‟s Mobile to IP route. Set Destination: Extension 302. The call which DID is 15105989843 will try to ring extension 302.

http://www.yeastar.com 115/175

NeoGate Solutions

Figure 5-8

Now we can test incoming calls for TrixBox. If you dial the GSM1 number on TG400, the call will be routed to the extension 302 on TrixBox.

5.4 IP to Mobile

In this section, we will configure outbound call from TrixBox through NeoGate TG.

http://www.yeastar.com 116/175

NeoGate Solutions

Figure 5-9

5.4.1 Create an Outbound Route on TrixBox

Path: Setup->Basic->Outbound Routes

Figure 5-10

Route Name: To_TG400 Dial Patterns: 9. You can also set other prefix. If you set like this, all the calls which number starts with 9, will be sent to TG400. Trunk Sequence: SIP/TG400

5.4.2 Create a "IP to Mobile" Route on TG400

Path: GatewayRoutes SettingsIP to Mobile

Simple Mode: Yes Route Name: From_TrixBox Call Source: SPS—TrixBox http://www.yeastar.com 117/175

NeoGate Solutions

Outbound Dialpattern: 9. This is same to the dial pattern in TrixBox Strip: 1. Because TrixBox sent 9+destination number, we should delete 9 before sending the number out. Call Destination: Mobile—GSM1

Figure 5-11

Save it and apply the changes, then you can dial outbound calls from TrixBox via NeoGate TG directly.

http://www.yeastar.com 118/175

NeoGate Solutions

NeoGate TE Series

1. How to connect Elastix to NeoGate TE Series

1.1 Introduction

This application note shows how to connect Elastix to NeoGate TE Series devices via SIP trunking. In this guide, we will take NeoGate TE100 for example, same configuration will apply to other TE series products.

Target: 1. Make outbound calls from Elastix via the E1 trunks of NeoGate TE directly. 2. Receive calls from E1 trunks of NeoGate TE at Elastix.

Description: IP address of Elastix: 192.168.5.178 IP address of NeoGate TE100: 192.168.5.239 E1 DID range: 5551000-5551099 E1 DOD range: 5551000-5551099

Figure 1-1

http://www.yeastar.com 119/175

NeoGate Solutions

1.2 Connect Elastix to NeoGate TE

1.2.1 Create a Service Provider SIP Trunk on Elastix

Path: PBX→Trunks→Add SIP Trunk

Figure 1-2

http://www.yeastar.com 120/175

NeoGate Solutions

Figure 1-3

PEER Details: host=192.168.5.239 type=peer qualify=yes disallow=all allow=ulaw,alaw,gsm After creating the SIP trunk, we can check the status of this trunk, it should be OK. Path:PBX→Option→Unembedded freePBX Login the FreePBX Asterisk CLI, enter the command "sip show peers" and click "Execute", the status will be seen.

http://www.yeastar.com 121/175

NeoGate Solutions

Figure 1-4

1.2.2 Create a VoIP Trunk on NeoGate TE

Path: Gateway→VoIP Settings→VoIP Trunk→Add VoIP Trunk Choose "Service Provider" mode, and fill in Elastix IP address.

Figure 1-5 Trunk Type: Service Provider Provider Name: Elastix Hostname/IP: 192.168.5.178 After save and apply the changes, you will see the trunk is „registered‟ in „Line Status‟. Path:Status→System Status→Trunk Status

Figure 1-6

http://www.yeastar.com 122/175

NeoGate Solutions

1.3 Outgoing Call from Elastix Extension via E1

Figure 1-7

1.3.1 Create an Outbound Route on Elastix

Path: PBX→Outbound Routes→Add Route Choose the VoIP trunk "NeoGate_TE" and set the rule for the outbound as the picture shows, which allows users to dial out any number out.

http://www.yeastar.com 123/175

NeoGate Solutions

Figure 1-8

1.3.2 Create „Elastix_to_TE‟ Route

Path: GatewayRoutes SettingsRoutes List

Figure 1-9 http://www.yeastar.com 124/175

NeoGate Solutions

Simple Mode: Yes Call Comes in From: ServiceProvider-Elastix. Send Call Through: Trunk—E1Trunk1.

1.3.3 Set DOD for Elastix Extension on TE

Figure 1-10 For example, we set extension 1000 as DID number 5551000.When you use extension 1000 to make outgoing call via TE, callee will see the caller ID number 5551000.

http://www.yeastar.com 125/175

NeoGate Solutions

1.4 Incoming Call from E1 to Elastix

Figure 1-11

1.4.1 Create an Inbound Route on Elastix

Path: PBX→Inbound Call Control→Inbound Routes In this guide, we set the DID number as 5551000 and set destination to extension 1000.

http://www.yeastar.com 126/175

NeoGate Solutions

Figure 1-12 DID number: 5551000 (which is same to the E1 trunk external number) Set Destination: 1000

1.4.2 Create „TE_To_Elastix‟ Route on NeoGate TE

Path: Gateway→Routes Settings→Routes List

http://www.yeastar.com 127/175

NeoGate Solutions

Figure 1-13

Simple Mode: Yes Call Comes in From: Trunk—E1Trunk1. Send Call Through: ServiceProvider-Elastix.

After saving the settings, you can dial the E1 DID number 5551000, the call will be routed to the extension 1000 on Elastix.

2. How to connect MyPBX to TE Series

2.1 Introduction

This application note shows how to connect MyPBX to NeoGate TE100 via SIP trunking.

Target: 1. Make outbound calls from MyPBX extension through the E1 trunks of NeoGate TE100 directly. 2. Receive calls from E1 trunks of NeoGate TE100 at MyPBX.

Description: IP address of MyPBX: 192.168.5.142 IP address of NeoGate TE100: 192.168.5.239 E1 DID range: 5551000-5551099 E1 DOD range: 5551000-5551099

http://www.yeastar.com 128/175

NeoGate Solutions

Figure 2-1

2.2 Connect MyPBX to NeoGate TE100

2.2.1 Create a Service Provider SIP Trunk on MyPBX

Path: PBX→Trunks→VoIP Trunk→Add Service Provider

Figure 2-2 Trunk Type: Service Provider Provider Name: NeoGateT100 Hostname/IP: 192.168.5.239 http://www.yeastar.com 129/175

NeoGate Solutions

After save and apply the changes, you will see the trunk is ‘ok’ in ‘Line Status’ page. Path:Status→Line Status→Trunk Status

Figure 2-3

2.2.2 Create a VoIP Trunk on NeoGate TE100

Path: Gateway→VoIP Settings→VoIP Trunk→Add VoIP Trunk Choose "Service Provider" mode, and fill in MyPBX IP address.

Figure 2-4 Trunk Type: Service Provider Provider Name: MyPBX Hostname/IP: 192.168.5.142 After save and apply the changes, you will see the trunk is ‘ok’ in ‘Line Status’ page. Path:Status→System Status→Trunk Status

Figure 2-5

http://www.yeastar.com 130/175

NeoGate Solutions

2.2.3 Setup E1 trunk on NeoGate TE100 referring to the E1 trunk provider

Figure 2-6

After save and apply changes, please check the E1 trunk status on Status -> System Status -> Trunk status

Figure 2-7

http://www.yeastar.com 131/175

NeoGate Solutions

2.3 Outgoing Call from MyPBX Extensions through E1

Figure 2-8

2.3.1 Create an Outbound Route on MyPBX

Path: PBX→ Outbound call control → outbound routes Choose the VoIP trunk "NeoGateTE100" and set the rule for the outbound as the picture shows, which allows users to dial out any number out.

http://www.yeastar.com 132/175

NeoGate Solutions

Figure 2-9

2.3.2 Create Route on NeoGate TE100

Path: GatewayRoutes SettingsRoutes List

Figure 2-10 Simple Mode: Yes Call Comes in From: ServiceProvider-MyPBX. Send Call Through: Trunk—E1Trunk1. http://www.yeastar.com 133/175

NeoGate Solutions

2.3.3 Setup DOD for MyPBX Extensions on MyPBX

Figure 2-11 For example, we set extension 301 as DOD number 5551001.When you use extension 301 to make outgoing call through NeoGate TE100, callee will see the caller ID number 5551001.

2.4 Incoming Call from E1 to MyPBX

Figure 2-12 http://www.yeastar.com 134/175

NeoGate Solutions

2.4.1 Create „FromTEToMyPBX‟ Route on NeoGate TE100

Path: Gateway→Routes Settings→Routes List

Figure 2-13

Simple Mode: Yes Call Comes in From: Trunk—E1Trunk1. Send Call Through: ServiceProvider-MyPBX.

2.4.2 Create an Inbound Route on MyPBX

Path: PBX→Inbound Call Control→Inbound Routes In this guide, we set the DID number as 5551001 and set destination to extension 301.

http://www.yeastar.com 135/175

NeoGate Solutions

Figure 2-14 DID number: 5551001 (which is same to the E1 trunk external number) Set Destination: 301

After saving the settings, you can dial the E1 DID number 5551001 from the mobile phone, the call will be routed to the extension 301 on MyPBX.

3. How to connect 3CX to NeoGate TE Series

This application note shows how to connect 3CX to NeoGate using SIP Trunking After connecting successfully, the extensions on 3CX can: 1. Make outbound calls via the E1 trunk on NeoGate TE 2. Receive incoming calls from the E1 trunk on NeoGate TE

Description IP of NeoGate TE100: 192.168.5.146 IP of 3CX: 192.168.5.115 E1 DID range: 5551000-5551099 E1 DOD range: 5551000-5551099 http://www.yeastar.com 136/175

NeoGate Solutions

3.1 Connect NeoGate TE100 and 3CX

3.1.1 Create a SPS trunk on TE100 to 3CX

Gateway  VOIP Settings  VOIP trunk  Add VOIP Trunk.

Figure 3-1 Add SIP Trunking in TE100

Type: SIP Provider Name: 3CX Hostname/IP 192.168.5.115 After creating SIP Trunking, we can check the status of this trunk, it should be OK(green). Status  System Status  Trunk Status

Figure 3-2 Trunks Status

3.1.2 Create a SPS trunk on 3CX to NeoGate TE100

1) Add VOIP Provider Wizard  (Type the Name of Provider  Choose „Generic‟ and „Generic SIP Trunk‟  Click „Next‟)

http://www.yeastar.com 137/175

NeoGate Solutions

Figure 3-3 Add VOIP Provider

2) Enter the TE100‟s IP and click Next

Figure 3-4 Configure the trunk information

3) Enter External Number (You can enter any number you want except the number similar to extension number, Here is 13812345678 as an example). And click “Next”. Note: Maximum simultaneous calls is four in the free version of 3CX. You also enter the http://www.yeastar.com 138/175

NeoGate Solutions number as you buy license from 3CX.

Figure 3-5 Configure Trunk External Number

5) Configure the default destination of inbound route to IVR for The SIP Trunking and click “Next”. Note: If you want to change the inbound route, you can double click trunk you want on the Ports/Trunk Status page after creating SIP Trunking.

Figure 3-6 Configure Inbound Route on 3CX 5) Click “Skip” to finish the SIP trunk.

http://www.yeastar.com 139/175

NeoGate Solutions

Figure 3-7 Finish Configure the Trunk

6) In Ports/Trunk status, we can check the trunk status.

Figure 3-8 Trunk Status

3.2 Incoming call from E1 to 3CX

In this section, we will configure incoming call to 3CX. Step1, Create a route from TE100 to 3CX. “Gateway”->”Route Settings”->”Route List”->”Add New Route”.

http://www.yeastar.com 140/175

NeoGate Solutions

Figure 3-9 Create Route From TE100 to 3CX Simple Mode: Yes Call Source: Trunk—E1Trunk1. Call Destination: ServiceProvider-3CX. All the calls from E1 trunk will be sent to 3CX via SPS trunk.

Step 2, Configure inbound route on 3CX. Click “Create DID” Inbound route name: From TE100 5551000 DID/DDI number/mask: 5551000, which is same to trunk external number. Available ports: TE100 Office Hours: Connect to Extension 1000 Jerry

Figure 3-10 Create DID

Step 3, Set source ID in VOIP provider edit page.

http://www.yeastar.com 141/175

NeoGate Solutions

Figure 3-11 Set Source ID Step 4, now we can test incoming calls for 3CX. If you dial the E1 DID 5551000, the call will be routed to the extension 1000 on 3CX.

3.3 Outbound Call from 3CX extension via E1

In this section, we will configure outbound call for 3CX extensions.

Step1, Configure Outbound route on 3CX. Create Outbound rule Rule Name: Rule for TE100 Prefix: 9 Call from extension(s): 1000-1003,1005 Route: TE100 Strip: 1

http://www.yeastar.com 142/175

NeoGate Solutions

Figure 3-12 Create Outbound Route

Step2, Configure Outbound Parameters in Trunk edit page Configure as below: “From: Display Name” -> “Caller DispName” “From: User Part” -> “Caller DispName”

Figure 3-13 Outbound Parameters

Step3, Create outbound route from 3CX to E1 on TE100 Gateway->Route Settings->Route List -> Add a New Route Simple Mode: Yes Route Name: From_3CX Call Source: ServiceProvider--3CX Call Destination: Trunk—E1Trunk1

http://www.yeastar.com 143/175

NeoGate Solutions

Figure 3-14 Create IP to Mobile Route

Step3, Set DOD for 3CX extension. For example, extension 1000 will use E1 DOD 5551000 to make outside calls via E1.

Figure 3-15 Configure DOD for 3CX extension Step3, after settings, all the calls from 3CX will be routed to GSM1. We can use extension on 3CX to make test calls.

http://www.yeastar.com 144/175

NeoGate Solutions

4. How to connect Lync server 2013 to NeoGate TE Series

4.1 Introduction

Brief introduction of the Lync Server installed, and the target achieved in this manual.

Brief Introduction: This is a standard version of Lync installed in windows 2008 R2 SP1 standard (64bit). It requires two computers to install, one for DC and the other one for Lync. Since TCP/TLS is supported by Lync only, which doesn't match the general trunks we get like PSTN/SIP (UDP)/BRI/GSM or others, a translator like NeoGate TE100 is needed.

Basic Information: IP of DC: 192.168.5.246 IP of Lync: 192.168.5.247 IP of NeoGate TE100: 192.168.5.148 FQDN: lync.yeastar.com (Front end server, SQL and mediation pool are installed here) Account: harry, extension: 800, UPN:[email protected] Default TCP port: 5060 (NeoGate TE100), 5068(Lync)

Target: 1. Making outbound calls from Lync via the E1 trunk of NeoGate TE100 directly. 2. Making inbound calls from E1 trunk of TE100 to Lync server directly.

Notes: 1. All number numbers dialed from Lync start with “+”, we need to delete this before dialing out via TE100 2. “+” is needed to be added when dialing from TE100 to Lync server 2013. 3. TE100 can dial directly the IVR/Queue/Ring group number of Lync 2013.

4.2 Create topology to Lync 2013 and publish it

Open the topology you have got from the builder. If you haven't got one, please create and publish it before adding a new gateway.

This is the window of lync 2013 Topology Buider:

http://www.yeastar.com 145/175

NeoGate Solutions

Figure 4-1

http://www.yeastar.com 146/175

NeoGate Solutions

Expand “Shared Compoments”, right click “PSTN gateways”, choose “New IP/PSTN Gateway”.

Figure 4-2

Input the FQDN of NeoGate TE100, in this example, NeoGate TE100‟s IP addres is 192.168.5.148.

http://www.yeastar.com 147/175

NeoGate Solutions

Figure 4-3 Click “Next”, keep the default “Enable IPv4”, click “Next”.

Figure 4-4 You can change the trunk name to NeoGate TE100, or just keep it. Listening port of IP/PSTN gateways: 5060 http://www.yeastar.com 148/175

NeoGate Solutions

SIP Transport Protocol: TCP

Figure 4-5

Figure 4-6

http://www.yeastar.com 149/175

NeoGate Solutions

When done, Publish ths new topology directly. Publishing is progressing as the following pictures show. If there is any error, please check the above steps or re-install the central SQL server.

Figure 4-7

Figure 4-8

http://www.yeastar.com 150/175

NeoGate Solutions

Figure 4-9 Publishing wizard is completed.

4.3 Set up rules in Lync Server 2013 Control Panel

4.3.1 Enable user for Lync Server 2013

Note: please create your account in DC first before adding it into Lync Server.

Enable Lync account in “Microsoft Lync Server 2013 Control Panel”. Open “Microsoft Lync Server 2013 Control Panel” and log in.

http://www.yeastar.com 151/175

NeoGate Solutions

Figure 4-10

http://www.yeastar.com 152/175

NeoGate Solutions

Click “Users” to enable the account and assign a number to the user, in this example: User: harry The number is: +800 Click “Enable Users” to start:

Figure 4-11

Click “Enable Users”.

http://www.yeastar.com 153/175

NeoGate Solutions

Figure 4-12 Click “Add”.

Figure 4-13

Click “find”. Choose the account “harry” before clicking “OK”. http://www.yeastar.com 154/175

NeoGate Solutions

Assign user to pool: lync.yeastar.com For user's SIP URL to log in the client software, we recommend using user‟s email address Telephony: Enterprise Voice Line URL: tel:+800

Figure 4-14 Click “Enable” to save it. Log in the client software with the new account: [email protected] to test if it is successfully added as a Lync Server user.

http://www.yeastar.com 155/175

NeoGate Solutions

Figure 4-15

Open Lync client software and log in lync.yeastar.com using “[email protected]”.

Figure 4-16

http://www.yeastar.com 156/175

NeoGate Solutions

Figure 4-17

4.3.2 Create call rules in control panel

Note: the extension number of Lync Server 2013 starts with “+”. Edit the “Global” dial plan.

http://www.yeastar.com 157/175

NeoGate Solutions

Figure 4-18 Edit the rule of “Keep All”; we need to add a “+” as the prefix.

Figure 4-19 Modify the length to “Any”, add “+” in field “Digits to add”, then click “OK” to save it

http://www.yeastar.com 158/175

NeoGate Solutions

Figure 4-20 You can input the test number to see if the translation rule works fine.

Figure 4- Edit the “Voice Policy”“Global”.

http://www.yeastar.com 159/175

NeoGate Solutions

Figure 2-22 Click “Select” and choose the Local into “Associated PSTN Usages”.

Figure 2-23

http://www.yeastar.com 160/175

NeoGate Solutions

Figure 2-24

Figure 2-25 Click “OK” to save it. Edit the “Route” page.

http://www.yeastar.com 161/175

NeoGate Solutions

Figure 2-26 Click “LocalRoute” to start editing.

Figure 2-27

http://www.yeastar.com 162/175

NeoGate Solutions

The default value is: ^(\+1[0-9]{10})$ Click Edit to modify the default pattern to ^(\+\d*)$

Figure 2-28 Click “OK” to save it, and you will see the modified patten as below:

Figure 2-29 http://www.yeastar.com 163/175

NeoGate Solutions

Add the associated trunk:

Figure 2-30

Choose the gateway we created to NeoGate TE100, in this example: PstnGateway: 192.168.5.148.

http://www.yeastar.com 164/175

NeoGate Solutions

Figure 2-31

Figure 2-32 Select the assoiciated PSTN Usages:

http://www.yeastar.com 165/175

NeoGate Solutions

Figure 2-33 Choose “Local” and “OK” to save it.

Figure 2-34

http://www.yeastar.com 166/175

NeoGate Solutions

Figure 2-35 Click the “PSTN Usage”, make sure the Routers is “LocalRoute”, Policies is “Global”.

Figure 2-36

http://www.yeastar.com 167/175

NeoGate Solutions

Edit the “Trunk Configuration” page.

Figure 2-37 Click “Global” to start.

Figure 2-38 Click “Select” to choose the associated PSTN usage for this trunk. http://www.yeastar.com 168/175

NeoGate Solutions

Figure 2-39 Chose “Local” in this exaple, click “OK” to save it.

Figure 2-40 Click “OK”.

http://www.yeastar.com 169/175

NeoGate Solutions

Figure 2-41 You can see the PSTN usage here, click “Commit”“Commit all” to take effect.

Figure 2-42 Click “Test Voice Routing” to see if our rules are correct.

http://www.yeastar.com 170/175

NeoGate Solutions

Figure 2-43

Test result: Passed. The configuration on Lync Server 2013 is completed.

4.4 Set up rules in NeoGate TE100 Web interface

4.4.1 Create Service Provider trunk to Lync Server 2013

Create a “Service Provider” SIP trunk: Hostname/IP: the IP of Lync Server 2013 is “192.168.5.247”. Port: 5068 (the default port for TCP protocol) Transport: TCP http://www.yeastar.com 171/175

NeoGate Solutions

Figure 2-44

Figure 2-45

We can check the status of this trunk in “Line Status”“Trunk Status” page.

Figure 2-46

Note: TCP protocol is disabled in NeoGate TE100 by default, you will need to enable it in “SIP settings” page in advance.

http://www.yeastar.com 172/175

NeoGate Solutions

4.4.2 Route call from Lync Server 2013 to E1 trunk

To route the call from Lync server 2013 to outside number via E1 trunk of TE100, we need configure the rule in “Route List” page. Click “GatewayRoutes Settings Route List” to access.

You can also edit the default SIP_To_E1 route. Here is my example for you:

Simple Mode: No Call comes in from: ServiceProvider-Lync2013, just choose the trunk we created to connect to Lync2013. Inbound caller pattern: X. DID number: +. . Send call through: Trunk—E1trunk1, choose this trunk to route the calls out. Outbound call pattern: +. Strip: 1

Figure 2-47 Save it and apply the changes.

4.4.3 Route call from E1 trunk to Lync Server 2013

Simple Mode: No http://www.yeastar.com 173/175

NeoGate Solutions

Call comes in from: ServiceProvider-Lync2013, just choose the trunk we created to connect to Lync2013. Inbound caller pattern: X. DID number: +. . Send call through: Trunk—E1trunk1, choose this trunk to route the calls out. Outbound call pattern: +. Strip: 0 Prepend these digits: +

Figure 2-48

Save and apply the changes, in this case NeoGate will route the calls from E1 trunk to Lync 2013, the DDI (DID) number will be delivered to Lync server directly with “+” added, it‟s the requested format in Lync Server side.

We can also input the IVR number or ring group number in this page, so that TE100 will dial that number directly to reach Lync Server‟s IVR or ringgroup/Queue. For example, the IVR number is “ tel: +900” in Lync Server 2013, we can configure it like this:

http://www.yeastar.com 174/175

NeoGate Solutions

Figure 2-49

Save and apply the changes, when there is an incoming call from E1 trunk, TE100 will route the call to number “tel:+800” of Lync Server 2013.

http://www.yeastar.com 175/175