How to configure Synway Gateway for a connection with Elastix System

From synwaywiki
Jump to: navigation, search

Read in PDF

Abstract

Elastix is an Open Source Software to establish Unified Communications. About this concept, Elastix goal is to incorporate all the communication alternatives, available at an enterprise level, into a unique solution.

Synway SMG gateway family helps customers access to IP networks from legacy telephony applications more reliably and efficiently. Synway Gateway got certified and is now part of the Hardware that has been successfully tested to be interoperable with Elastix.

This document will help you to configure Synway Digital or Analog Gateway for a connection with Elastix System.

Test Environment

Elastix 2.4.0 (32 bit)
Synway Digital Gateway: SMG2120, 1.6.1_2015062617
Synway Analog Gateway:SMG1032, 1.5.2_Release+2015052812

Installing Elastix

Please refer to http://blogs.elastix.org/en/manuals/#toggle-id-1, you can find Elastix 2 Installation Guide manual.

Configuring Synway Digital Gateway for a Connection with Elastix

Elastix IP Address: 192.168.10.163
Synway Digital Gateway IP Address: 192.168.10.248
Synway Digital Gateway E1 port PCM0 connects to E1 endpoint , here we use Synway SHD digital trunk board as the E1 endpoint, both are configured in PRI protocol

Below is the configuration among Elastix System, Eyebeam, and Synway Digital Gateway, try to make calls from these scenarios:
a) Eyebeam-->Elastix-->Digital Gateway-->E1 Endpoint
b) E1 Endpoint-->Digital Gateway-->Elastix-->Eyebeam

1)To configure the Elastix system, start a web browser and enter the IP address of the Elastix System. Here is an example, http://192.168.10.163.
To configure the Elastix system, start a web browser and enter the IP address of the Elastix System.

2)To add an extension, go to the ‘PBX’ menu, which by default goes to to the ‘PBX Configuration’ section, choose the option ‘Extensions’ on the left panel, select device type as ‘Generic SIP Device’, click ‘Submit’, then specify a user extension, display name and password for this extension, do not forget to click ‘Apply Config’ after any change at last.
add an extension

add an extension

add an extension

add an extension

3)To set an Eyebeam registering to the Elastix System, the User name and Password fields here must match the extension in the Elastix System.
To set an Eyebeam registering to the Elastix System, the User name and Password fields here must match the extension in the Elastix System.

4)To add a Synway Digital Gateway as a Sip Trunk, click on ‘Trunks’ from the toolbar, follow below steps to add a ‘Digital_SMG’ sip trunk.
To add a Synway Digital Gateway as a Sip Trunk, click on ‘Trunks’ from the toolbar, follow below steps to add a ‘Digital_SMG’ sip trunk.

To add a Synway Digital Gateway as a Sip Trunk, click on ‘Trunks’ from the toolbar, follow below steps to add a ‘Digital_SMG’ sip trunk.

5)Create an outbound call rule to Synway Digital SMG. For example, when making an outbound call from the extension 1001, the other side will receive a call with caller Id 1001, here the dial pattern is ‘8.’, which means the callee id starting with 8, can be routed to the ‘Digital_SMG’ SIP trunk.
Create an outbound call rule to Synway Digital SMG

6)Create an inbound call rule with DID Number ‘12345’, which means call from the Synway Digital Gateway Sip Trunk with callee ID 12345 will be accepted by the Elastix System, and this call will be transferred to extension ‘1001’.
Create an inbound call rule

Create an inbound call rule

7)To configure Synway Digital Gateway connecting with Elastix System, start a web browser and enter the IP address of the Synway Digital Gateway.
Create an inbound call rule

8)Click on ‘SIP Trunk’ from the toolbar, add the Elastix System as a sip trunk, here the Elastix IP address is 192.168.10.163, and port is 5060.
Click on ‘SIP Trunk’

9)Click on ‘SIP Trunk Group’ on the toolbar, add the SIP Trunk 0 into SIP Trunk Group 0
Click on ‘SIP Trunk’

10)Click on ‘PCM Trunk Group’ on the toolbar, according to the requirement, add related PCM Trunk(s) into PCM Trunk Group. Here add all the PCM Trunks 0,1,2,3 into PCM Trunk Group 0.
Click on ‘PCM Trunk Group’

11)Click on ‘Route\ IP->PSTN’ on the toolbar, call from the Elastix System will be routed to PCM Trunk Group 0.
Click on ‘Route\ IP->PSTN’ on the toolbar

12)Click on ‘Route\ PSTN->IP’ from the toolbar, call from E1 Endpoint will be routed to SIP Trunk Group 0.
Click on ‘Route\ PSTN->IP’ from the toolbar

13)Extension 1001 in the Elastix System made a call 8001 to Synway Digital Gateway, it finally reached to E1 Endpoint with caller Id 1001, and callee Id 8001.
Extension 1001 in the Elastix System

14)E1 endpoint made a call ‘12345’ to the Synway Digital Gateway, it finally reached to extension 1001 in the Elastix System.
E1 endpoint made a call ‘12345’ to the Synway Digital Gateway

Configuring Synway Analog Gateway for a Connection with Elastix

Elastix IP Address: 192.168.10.163
Synway Analog Gateway IP Address: 192.168.10.189

Below is the configuration among Elastix System, and Synway Analog Gateway, FXS 9 and FXS 10 in the Synway Analog Gateway registered to Elastix, try to make calls from these scenarios:
a)FXS-->Elastix-->FXS
b)FXS-->Elastix-->Eyebeam
c)Eybeam-->Elastix-->FXS
d)Eybeam-->Elastix-->Analog Gateway-->PSTN
e)PSTN-->Analog Gateway-->Elastix-->Eyebeam

1)Add two more extensions 1003 and 1004 in the Elastix System, for details how to add an extension, please refer to Chapter4, Section2 in this document.

2)Add the Synway Analog Gateway as a VoIP SIP Trunk, the Analog Gateway IP address is 192.168.10.189.
Ces521.png

3)Create an outbound call rule to Synway Analog SMG. For example, when making an outbound call from the extension 1001, the other side will receive a call with caller Id 1001, here the dial pattern is ‘0.’, which means the callee id starting with 0, can be routed to the ‘Analog_SMG’ SIP trunk.
Ces531.png

4)To configure Synway Analog Gateway connecting with Elastix System, start a web browser and enter the IP address of the Synway Analog Gateway.
Ces541.png

5)Click on ‘VoIP\SIP’ from the toolbar, as two FXS extensions in the Analog Gateway should register to Elastix system, here set the Register IP Address is 192.168.10.163.
Ces551.png

6)Port 9 and Port 10 are FXS type, set these two ports registering to Elastix with extension number 1003 and 1004.
Ces561A.png

Ces561B.png

Ces561C.png

7)FXS 9(1003) made a call to FXS 10 (1004).
Ces571.png

8)FXS 9(1003) made a call to Eyebeam(1001)
Ces581.png

9)Eyebeam(1001) made a call to FXS 10(1004).
Ces591.png

10)Eyebeam(1001) made a call to PSTN 088861158.
Click on Port\Port Group from the toolbar, add FXO port into Port Group 1.
Ces5101A.png

Create the IP-TEL routing rule, when a call comes in to the gateway on a SIP channel, with callee ID prefix 0, this call will be routed to FXO port, then this FXO port will make an outbound call to PSTN.
Ces5101B.png

Eyebeam(1001) made a call to PSTN 088861158.
Ces5101C.png

11)PSTN 088861158 made a call to Eyebeam(1001).
Create the TEL-IP routing rule, when a call comes in to the gateway on a FXO port, this call will be routed to SIP channel, then the SIP channel will make an outbound call to the Elastix System.
Ces5111A.png

PSTN 8357 made a call to Eyebeam(1001).
Ces5111B.png