atcom mp01 and elastix server · 2018. 11. 6. · atcom mp01 and elastix server setup guide 7...

13
Atco http://www.elastix.org om MP01 and Elastix Setup x Server p Guide

Upload: others

Post on 14-Mar-2021

25 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Atcom MP01 and Elastix Server · 2018. 11. 6. · Atcom MP01 and Elastix Server Setup Guide 7 Configuring Atcom MP01 Only one MP01 must be configured with a SIP Trunk to register

http://www.elastix.org

Atcom MP01 and Elastix Server

Setup Guide

http://www.elastix.org

Atcom MP01 and Elastix Server

Setup Guide

http://www.elastix.org

Atcom MP01 and Elastix Server

Setup Guide

Page 2: Atcom MP01 and Elastix Server · 2018. 11. 6. · Atcom MP01 and Elastix Server Setup Guide 7 Configuring Atcom MP01 Only one MP01 must be configured with a SIP Trunk to register

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

2

1.0 Setup DiagramThis is a setup diagram for a mesh network of Atcom MP01 configuration. Wheneverything is configured we’ll be able to call between analog phones and also to havecommunication with Elastix sever.

Figure 1-1. Setup Diagram

2.0 Host PC EnvironmentTable 2-1. Host Server Environment Details

DescriptionHardware Type Elastix Appliance ELX-Series

Hardware Version ELX-3000Software Type Elastix

Software Version 2.3

3.0 Test Setup EquipmentTable 3-1. Test Setup Equipment

Equipment Model VersionIP (SIP) Phone N/A N/A

Atcom MP01 r233Switch N/A N/A

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

2

1.0 Setup DiagramThis is a setup diagram for a mesh network of Atcom MP01 configuration. Wheneverything is configured we’ll be able to call between analog phones and also to havecommunication with Elastix sever.

Figure 1-1. Setup Diagram

2.0 Host PC EnvironmentTable 2-1. Host Server Environment Details

DescriptionHardware Type Elastix Appliance ELX-Series

Hardware Version ELX-3000Software Type Elastix

Software Version 2.3

3.0 Test Setup EquipmentTable 3-1. Test Setup Equipment

Equipment Model VersionIP (SIP) Phone N/A N/A

Atcom MP01 r233Switch N/A N/A

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

2

1.0 Setup DiagramThis is a setup diagram for a mesh network of Atcom MP01 configuration. Wheneverything is configured we’ll be able to call between analog phones and also to havecommunication with Elastix sever.

Figure 1-1. Setup Diagram

2.0 Host PC EnvironmentTable 2-1. Host Server Environment Details

DescriptionHardware Type Elastix Appliance ELX-Series

Hardware Version ELX-3000Software Type Elastix

Software Version 2.3

3.0 Test Setup EquipmentTable 3-1. Test Setup Equipment

Equipment Model VersionIP (SIP) Phone N/A N/A

Atcom MP01 r233Switch N/A N/A

Page 3: Atcom MP01 and Elastix Server · 2018. 11. 6. · Atcom MP01 and Elastix Server Setup Guide 7 Configuring Atcom MP01 Only one MP01 must be configured with a SIP Trunk to register

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

3

4.0 Setup ProcedureTo prepare Elastix for incoming calls and outgoing calls to the mesh network follow

these steps:

1. Go to the web address of the Elastix Server Login page. The web address isdetermined by the customer, for this guide we have used the IP address192.168.1.75

2. On the Login page, type the username and password for an administrative user intothe Username and Password fields see Figure 4-1. The username and password aredetermined by the customer.

Figure 4-1. Login

3. Let’s create an Elastix SIP extension for communication with analog phones of the

mesh network. For this go to “PBX => PBX Configuration => Extension”. Click on

“Submit” having selected “Add SIP Device” option. (Figure 4-2)

Figure 4-2. SIP Extension

4. Fill in the following information on the Add SIP Extension page (Figure 4-3):

Page 4: Atcom MP01 and Elastix Server · 2018. 11. 6. · Atcom MP01 and Elastix Server Setup Guide 7 Configuring Atcom MP01 Only one MP01 must be configured with a SIP Trunk to register

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

4

• User Extension (302 in this example)• Display Name (“IPPhone” in this example)• secret (“h7Dka3Rf9si0t” in this example)

Figure 4-3. Add SIP Extension

5. Click on “Submit” button and Apply changes by clicking on the pink ribbon thatappears at the top of the page. Configure the IP Phone with the same extension andpassword.

6. Now we’ll create a SIP trunk to register only one MP01 in order to havecommunication between MP01’s network and Elastix sever. Go to “PBX => PBXConfiguration => Trunks”. Click on “Add SIP Trunk”, then “Submit” (Figure 4-4).Set the following parameters:

General Settings

Trunk Name: A name for the SIP trunk (“MP01Trunk” in this example)

Outgoing Settings

Trunk Name: mesh

PEER Details:

type=friendcontext=defaultdisallow=allqualify=yesdtmfmode=rfc2833canreinvite=nohost=192.168.1.99 (MP01’s IP address)allow=gsm,ulaw

(This configuration have been taken from a recommendation of “VillageTelco”who is the promoting organization of Mesh Potato project.)

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

4

• User Extension (302 in this example)• Display Name (“IPPhone” in this example)• secret (“h7Dka3Rf9si0t” in this example)

Figure 4-3. Add SIP Extension

5. Click on “Submit” button and Apply changes by clicking on the pink ribbon thatappears at the top of the page. Configure the IP Phone with the same extension andpassword.

6. Now we’ll create a SIP trunk to register only one MP01 in order to havecommunication between MP01’s network and Elastix sever. Go to “PBX => PBXConfiguration => Trunks”. Click on “Add SIP Trunk”, then “Submit” (Figure 4-4).Set the following parameters:

General Settings

Trunk Name: A name for the SIP trunk (“MP01Trunk” in this example)

Outgoing Settings

Trunk Name: mesh

PEER Details:

type=friendcontext=defaultdisallow=allqualify=yesdtmfmode=rfc2833canreinvite=nohost=192.168.1.99 (MP01’s IP address)allow=gsm,ulaw

(This configuration have been taken from a recommendation of “VillageTelco”who is the promoting organization of Mesh Potato project.)

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

4

• User Extension (302 in this example)• Display Name (“IPPhone” in this example)• secret (“h7Dka3Rf9si0t” in this example)

Figure 4-3. Add SIP Extension

5. Click on “Submit” button and Apply changes by clicking on the pink ribbon thatappears at the top of the page. Configure the IP Phone with the same extension andpassword.

6. Now we’ll create a SIP trunk to register only one MP01 in order to havecommunication between MP01’s network and Elastix sever. Go to “PBX => PBXConfiguration => Trunks”. Click on “Add SIP Trunk”, then “Submit” (Figure 4-4).Set the following parameters:

General Settings

Trunk Name: A name for the SIP trunk (“MP01Trunk” in this example)

Outgoing Settings

Trunk Name: mesh

PEER Details:

type=friendcontext=defaultdisallow=allqualify=yesdtmfmode=rfc2833canreinvite=nohost=192.168.1.99 (MP01’s IP address)allow=gsm,ulaw

(This configuration have been taken from a recommendation of “VillageTelco”who is the promoting organization of Mesh Potato project.)

Page 5: Atcom MP01 and Elastix Server · 2018. 11. 6. · Atcom MP01 and Elastix Server Setup Guide 7 Configuring Atcom MP01 Only one MP01 must be configured with a SIP Trunk to register

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

5

Figure 4-4. Trunks

7. Click on “Submit Changes” and apply changes.

8. If the MP01 is behind a NAT firewall, you have to edit the file“/etc/asterisk/sip_general_custom.conf” and add the following line:

nat=yes

9. For outgoing calls from Elastix to the mesh network we need to specify a prefix thatwill allow making calls using the SIP trunk. To do this, go to “PBX => PBXConfiguration => Outbound Routes”. Click on “Add Route” link (Figure 4-5). Setthe following:

Route Settings

Route Name: (“9_Mesh” in this example)Dial patterns

Prefix: (“9” in this example) | Match pattern: (“.” in this example)Trunk Sequence for Matched Routes

0: The trunk that we just created (“MP01Trunk” in this example)

Figure 4-5. Outbound Route

Page 6: Atcom MP01 and Elastix Server · 2018. 11. 6. · Atcom MP01 and Elastix Server Setup Guide 7 Configuring Atcom MP01 Only one MP01 must be configured with a SIP Trunk to register

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

6

10. Click on “Submit Changes” and Apply configuration. The configuration in Elastixis ready. If we want to call an extension on Mesh Potato we have to dial 9 and thenthe number but before we have to configure the MP01.

Page 7: Atcom MP01 and Elastix Server · 2018. 11. 6. · Atcom MP01 and Elastix Server Setup Guide 7 Configuring Atcom MP01 Only one MP01 must be configured with a SIP Trunk to register

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

7

Configuring Atcom MP01

Only one MP01 must be configured with a SIP Trunk to register with Elastix. For theother ones you only need to follow steps 8 and 9 to configure the extension number forthe analog phones connected to them.

1. Connect a PC directly to one MP01 device using a straight network cable.

2. Enter to the MP01 web interface by pointing your browser to the MP01’s IPaddress.

Factory default settings

IP Address 192.168.1.20Web Access User Name rootWeb Access Password (none)

3. Login into the WebUI using the credentials by default specified in the table above(Figure 4-6)

Figure 4-6. Login

4. Once inside, change the administrator password to have SSH access later. Go to thetop-right menu and choose the “LuCI” option (Figure 4-7)

Figure 4-7.

5. From the top menu, go to “System => Admin Password”, and set the new passwordfor the MP01 device (Figure 4-8).

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

7

Configuring Atcom MP01

Only one MP01 must be configured with a SIP Trunk to register with Elastix. For theother ones you only need to follow steps 8 and 9 to configure the extension number forthe analog phones connected to them.

1. Connect a PC directly to one MP01 device using a straight network cable.

2. Enter to the MP01 web interface by pointing your browser to the MP01’s IPaddress.

Factory default settings

IP Address 192.168.1.20Web Access User Name rootWeb Access Password (none)

3. Login into the WebUI using the credentials by default specified in the table above(Figure 4-6)

Figure 4-6. Login

4. Once inside, change the administrator password to have SSH access later. Go to thetop-right menu and choose the “LuCI” option (Figure 4-7)

Figure 4-7.

5. From the top menu, go to “System => Admin Password”, and set the new passwordfor the MP01 device (Figure 4-8).

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

7

Configuring Atcom MP01

Only one MP01 must be configured with a SIP Trunk to register with Elastix. For theother ones you only need to follow steps 8 and 9 to configure the extension number forthe analog phones connected to them.

1. Connect a PC directly to one MP01 device using a straight network cable.

2. Enter to the MP01 web interface by pointing your browser to the MP01’s IPaddress.

Factory default settings

IP Address 192.168.1.20Web Access User Name rootWeb Access Password (none)

3. Login into the WebUI using the credentials by default specified in the table above(Figure 4-6)

Figure 4-6. Login

4. Once inside, change the administrator password to have SSH access later. Go to thetop-right menu and choose the “LuCI” option (Figure 4-7)

Figure 4-7.

5. From the top menu, go to “System => Admin Password”, and set the new passwordfor the MP01 device (Figure 4-8).

Page 8: Atcom MP01 and Elastix Server · 2018. 11. 6. · Atcom MP01 and Elastix Server Setup Guide 7 Configuring Atcom MP01 Only one MP01 must be configured with a SIP Trunk to register

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

8

Figure 4-8. Changing password

6. Change the IP address according to your network. From the top menu go to“Network => Interfaces => LAN” (Figure 4-9)

Figure 4-9. LAN settings

7. Disconnect the cable from MP01 and connect it to the network. You should be ableto access to MP01 through the new IP address and using the new password.

8. Once logged in, set the following parameters to configure the mesh network (Figure4-10):

Network

IP Address: This is the wireless IP address of the MP01. The last numberof this address will be the extension of the analog phone connected to thisMP01.

Page 9: Atcom MP01 and Elastix Server · 2018. 11. 6. · Atcom MP01 and Elastix Server Setup Guide 7 Configuring Atcom MP01 Only one MP01 must be configured with a SIP Trunk to register

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

9

Figure 4-10.

In this example the extension would be 20 because that is the last number of IPaddress. Configure each MP01 in the same network but different extension.

9. If you changed the IP address, click on the refresh button located next to Network tosave changes. Reboot the device by disconnecting the power cord and connectingagain.

10. Now we have to register the Mesh Potato device using the parameters we set for theSIP Trunk in Elastix. To do this login using SSH access to the MP01 with thepassword we set before (Figure 4-11).

Figure 4-11

11. Edit the file “/etc/asterisk/sip.conf”. Add the following line at the end of the section[general] (Figure 4-12):

register = mesh@mesh/mesh

Then add these lines at the end of the file:

[mesh]type=friendcontext=defaultdisallow=allqualify=yes

Page 10: Atcom MP01 and Elastix Server · 2018. 11. 6. · Atcom MP01 and Elastix Server Setup Guide 7 Configuring Atcom MP01 Only one MP01 must be configured with a SIP Trunk to register

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

10

dtmfmode=rfc2833canreinvite=nohost=192.168.1.75 (IP of Elastix Server)allow=gsm,ulaw,alawnat=yes

Figure 4-12

12. Save the file and go to Asterisk CLI to reload the SIP service by typing sip reload.Then check out if the SIP trunk is registered with Elastix. You should see the trunkregistered, something like this:

Figure 4-13

13. Now you should be able to call from the IPPhone using the prefix 9 to a number ofthe Mesh Potato.

14. If we want to call from the analog phones to Elastix and reach the IP Phone we haveto configure the dial plan in MP01. Edit the file “etc/asterisk/extensions.conf”. Addthe following line at the beginning of the section [default] (Figure 4-14).

exten => _1XXX,1,Macro(page,SIP/${EXTEN})

Figure 4-14

This line means that if we want to call an extension in Elastix server we have to dial1 followed by an extension of 3 digits (In this guide it would be 1302 to call to theIP Phone). You can set more or less digits. For any number of digits you can set“_1X.”

Page 11: Atcom MP01 and Elastix Server · 2018. 11. 6. · Atcom MP01 and Elastix Server Setup Guide 7 Configuring Atcom MP01 Only one MP01 must be configured with a SIP Trunk to register

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

11

15. Save the file and go to Asterisk CLI to reload the dial plan service by typingdialplan reload.

If you have configured all the MP01 with a valid extension you will be able to makecalls between analog phones and also to Elastix through SIP trunk.

Page 12: Atcom MP01 and Elastix Server · 2018. 11. 6. · Atcom MP01 and Elastix Server Setup Guide 7 Configuring Atcom MP01 Only one MP01 must be configured with a SIP Trunk to register

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

12

Calling directly without using a trunk prefix

If you want to call directly the number of the analog phone extension without the prefixof the trunk , follow these steps:

1. Go to to Elastix WebUI and create a virtual extension with the same number of theanalog phone extension. Go to “PBX => PBX Configuration => Extensions” andselect “None (virtual exten)” (Figure 4-15)

Figure 4-15

2. Fill out the following information.

Add extension User Extension: 20 (Analog phone extension) Display Name: 20

Voicemail & Directory Status: Enabled Voicemail Password: 1647

Figure 4-16

3. Click on “Submit” button and Apply Changes. Now click on the extension we justcreated to edit the “Follow me” feature (Figure 4-17).

Figure 4-17

Page 13: Atcom MP01 and Elastix Server · 2018. 11. 6. · Atcom MP01 and Elastix Server Setup Guide 7 Configuring Atcom MP01 Only one MP01 must be configured with a SIP Trunk to register

PaloSanto SolutionsAtcom MP01 and Elastix Server Setup Guide

13

4. On the section “Add Follow Me Settings”, set the Follow Me List and theDestination if no answer (Figure 4-18):

Edit Follow Me

Follow-Me List: 920#

Destination if no answer

Voicemail : <20> 20 (unavail)

Figure 4-18

5. Click on “Submit Changes” and apply changes.

Now we can call to an analog phone by dialing just the extension 20 instead of 920. Itwill automatically use the SIP trunk to communicate to Mesh Potato.