You are on page 1of 21

SIP Trunking with Elastix

Configuration Guide for Matrix SETU VTEP

Contents
Setup Diagram 3

SIP Trunk Configuration in Elastix for SETU VTEP 4

Outgoing Call configuration in Elastix 7

Incoming call configuration in Elastix 9

SIP Trunk Configuration in SETU VTEP for Elastix 11

E1 to SIP Routing Configuration in SETU VTEP 18

FAX Configuration in SETU VTEP 20

FAX Configuration in Elastix 21

Viewing SIP Trunk Status in SETU VTEP 21

SETU VTEP configuration guide for Elastix Page | 2

0) Elastix-2.6.4.e15 on an i686) Software Type Elastix 2.4.4.18-274.0-Stable-i386-bin-04Feb2013 Software version Test Setup Equipment: Equipment Model Version SETU VTEP N/A V1R9 Analog Telephone N/A N/A SETU VTEP configuration guide for Elastix Page | 3 .7 (Kernel 2.0 Elastix (2.Set Up Diagram: (Note : PRI line from PBX is terminated to VTEP as per above setup diagram) Host Server Environment Details Description Server OS CentOS release 5.

php# (here. click on PBX Configuration menu. Password: admin  On Successful login home Page opens  On the top of the screen.51.6/admin/config.168. 192.6 IP is allocated for Elastix WEB GUI access) Enter username & password as entered while installing Elastix.168. To add a Trunk select Add SIP Trunk in Trunk menu SETU VTEP configuration guide for Elastix Page | 4 .51.SIP Trunk configuration in Elastix for SETU VTEP  Open the Web GUI of Elastix server in web browser as shown below (IP of server will be same as IP of System on which Elastix is installed). http://192. Default username: admin.

SETU VTEP configuration guide for Elastix Page | 5 . all Outgoing numbers with prefix 1 has to be routed via VTEP)  In Outgoing Settings.51.  Configure PEER Details o host=***provider ip address***  provider ip address is the IP address of VTEP.238) o type=peer  Peer to Peer trunk between VTEP and Elastix o dtmfmode=rfc2833  DTMF detection and Out-dial mode is set to rfc2833(OUTBAND)  Click on Submit changes. Used in this example. configure Trunk Name as vtep. 192.e.168. (i.  In Trunk Name field configure Type as VTEP  In CID Options field configure as Allow Any CID  Configure Maximum Channels as 8  In Dialed Number Manipulation field configure desired number pattern which has to be routed via VTEP ( 1.

 Click on Apply Configuration Changes Here  New configuration setting will be saved and Elastix will be reloaded SETU VTEP configuration guide for Elastix Page | 6 .

Outgoing Call Configuration in Elastix:  Open Outbound Routes.(In this example. SETU VTEP configuration guide for Elastix Page | 7 . Used in this example. all Outgoing numbers with prefix 1 has to be routed via VTEP) Prefix can be used before dialing the desired number. ( 9 used in this example)  Configure desired caller id in Caller ID field  In Trunk Sequence for Matched Routes configure the SIP trunk which we created.  In Route Name field configure any desired Rule Name ( interop name used in this Example)  In Dial Pattern field configure desired number pattern which has to be routed via VTEP (_1. we have created VTEP)  Click on Submit Changes and Apply Configuration Changes Here as well.

SETU VTEP configuration guide for Elastix Page | 8 .

SETU VTEP configuration guide for Elastix Page | 9 . (In this example it is configured as Incoming_VTEP )  Set Destination for Incoming call Router ( selected 7700 extension in Example)  Click on Submit  Click on Apply Configuration Changes Here. Click on Inbound Routes  Configure Description field as name of Incoming route.Incoming Call Configuration in Elastix:  Open PBX Configuration.

SETU VTEP configuration guide for Elastix Page | 10 .

168. and then click the Login button. Internet Explorer/Mozilla Firefox.51. enter the System Engineer password (Default: 1234).  In the Login Password box of the login page.  If the IP Address has not been changed. on the standalone computer/LAN PC to which the Network Port of SETU VTEP is connected  Enter the current IP address of Network Port of your SETU VTEP in the address bar of the browser. SETU VTEP configuration guide for Elastix Page | 11 . you may enter the default IP Address of the Network Port. ( 192.238 IP used in this example)  The login page opens.SIP Trunk configuration in SETU VTEP for Elastix:  Open the browser.

make sure the SIP Trunk Enable check box is selected.  For the SIP Trunk number you select. by clicking the SIP trunk number tab. SIP Trunk number 1. Elastix. SETU VTEP configuration guide for Elastix Page | 12 . choose any SIP Trunk number from 01 to 32 to register with Asterisk. click the SIP Trunk link. for example. for example.  Assign a Name to the SIP trunk as identification. the home page opens  Under Basic Settings on the left navigation bar.  On successful login. The SIP Trunk parameters page opens.  On the SIP Trunk page.

In SIP Trunk Mode.  Click on Arrow Button beside peer to peer. a) Registrar settings:  Click Registrar Settings to expand. select Peer to peer. A second window will pop-up SETU VTEP configuration guide for Elastix Page | 13 .

 Click on Edit  Third window will open. Configure IP of Asterisk in Destination Address Field  Click Submit and Close to close 3rd window  Close 2nd windows by clicking on Close button  Click on Submit in main window to save SETU VTEP configuration guide for Elastix Page | 14 .

711 (A-law) and G. iLBC 30ms. As 1st Preference and 2nd Preference. The SIP Trunk parameters page opens. move all other codecs—GSM FR. G.  Make sure only G.Law. by selecting it and using the UP ARROW  Click Submit to save SETU VTEP configuration guide for Elastix Page | 15 . click the SIP Trunk link.711 μ. v  From the Selected Codecs list box. b) Selecting Preferred Codecs  Under Basic Settings on the left navigation bar.Law) remain in the Selected Codecs list box. to the Available Codecs box.711 A-Law or G. You may set one of these codecs as the First preference.  Click Vocoder Preference to expand  Set Vocoder preference. by selecting the codec. and then clicking the BACK ARROW. set either G.711 (μ. iLBC 20 ms.729— one by one.

 In Route all Incoming calls( with CLI & without CLI ) option configure to the called party number  In Select Destination for Routing Calls Configure Fixed  Click on submit SETU VTEP configuration guide for Elastix Page | 16 . c) Handling of Incoming Calls  Click Handling of Incoming Calls to expand.

d) Handling of Outgoing Calls:  Click Handling of Outgoing Calls to expand.  Tick mark flag Connect Source Port When 183 ( Session Progress) is received on SIP  In SIP ID FROM Header of Invite message field configure Caller Id Received on Source Port Click    Click on submit SETU VTEP configuration guide for Elastix Page | 17 .

 Select Radio button Port Wise C    Click arrow beside Port Wise. The T1E1 parameters page opens. click the T1E1 Port. A new window will open  In Route all Incoming calls( with CLI & without CLI ) option configure to the called party number  In Select Destination for Routing Calls Configure Fixed  Click on Submit and Close SETU VTEP configuration guide for Elastix Page | 18 .E1 to SIP Routing Configuration in SETU VTEP  Under Basic Settings on the left navigation bar.  Click Handling of Outgoing Calls to expand.

Click Handling of  Click Handling of  Click Handling of   Tick mark flag Connect Source Port when Progress Indicator is Received on T1E1 Port  Click on Submit in main window to save SETU VTEP configuration guide for Elastix Page | 19 .

v SETU VTEP configuration guide for Elastix Page | 20 .Fax Configuration in SETU VTEP:  Click Advanced Settings to expand.  Default Fax protocol is T.38. You can configure Pass-through or T.38 FAX by selecting respective Radio Button.

To do this. click the SIP Trunk link.38 in Elastix following command needs to be given from root. 1) Setup /etc/asterisk/udptl.conf  After allocating above commands Fax with T.  Under Status.  Click the Status link on the left navigation bar.  To configure T.Fax Configuration in Elastix:  Default FAX protocol in Elastix is Pass-through. Viewing SIP Trunk Status in SETU VTEP Once you have completed configuring the SIP Trunk.38 protocol works if same is set at client device also. you may view its status.  The SIP Trunk Status page opens SETU VTEP configuration guide for Elastix Page | 21 .conf manually 2) 2) add "t38pt_udptl=yes" to /etc/asterisk/sip_general_custom.