D Setting up a SIP server with Asterisk » History » Version 2
VEILLARD GAROZ, Loïc, 03/20/2015 08:46 PM
1 | 1 | VEILLARD GAROZ, Loïc | h1. D Setting up a SIP server with Asterisk |
---|---|---|---|
2 | 1 | VEILLARD GAROZ, Loïc | |
3 | 1 | VEILLARD GAROZ, Loïc | In order to set up the asterisk server we will use the Intel NUC. |
4 | 1 | VEILLARD GAROZ, Loïc | |
5 | 1 | VEILLARD GAROZ, Loïc | We have proposed, installed and studied the following operative systems: |
6 | 1 | VEILLARD GAROZ, Loïc | |
7 | 1 | VEILLARD GAROZ, Loïc | -FreePBX 13 |
8 | 1 | VEILLARD GAROZ, Loïc | -FreePBX 12 |
9 | 1 | VEILLARD GAROZ, Loïc | -FreePBX 6 |
10 | 1 | VEILLARD GAROZ, Loïc | -Elastix 2.5 |
11 | 1 | VEILLARD GAROZ, Loïc | -Elastix 3 (MT) |
12 | 1 | VEILLARD GAROZ, Loïc | -AsteriskNow 6.12 |
13 | 1 | VEILLARD GAROZ, Loïc | -Debian server (20/02/2015) |
14 | 1 | VEILLARD GAROZ, Loïc | -Ubuntu server 14.04.2 |
15 | 1 | VEILLARD GAROZ, Loïc | |
16 | 1 | VEILLARD GAROZ, Loïc | After an exhaustive analysis of the hardware supported by each operative system and the specifications of our Intel NUC we have obtained the next limitations: |
17 | 1 | VEILLARD GAROZ, Loïc | |
18 | 1 | VEILLARD GAROZ, Loïc | h2. Limitations: |
19 | 1 | VEILLARD GAROZ, Loïc | |
20 | 1 | VEILLARD GAROZ, Loïc | h3. USB 3.0 problems |
21 | 2 | VEILLARD GAROZ, Loïc | |
22 | 1 | VEILLARD GAROZ, Loïc | Most of the operative systems based on CentOs 6.5 or lower had problems of compatibly with the USB 3.0 ports of our NUC. As the installation may be achieved by USB (both with a pendrive or an usb DVD player). THis generates a frozen state of the kernel while loading at the first set up of the system. Lower versions of CentOS don't have this problem. A workaround is to disable from grub with the following command: |
23 | 1 | VEILLARD GAROZ, Loïc | |
24 | 1 | VEILLARD GAROZ, Loïc | enable.xchi_hcd=0 |
25 | 1 | VEILLARD GAROZ, Loïc | |
26 | 1 | VEILLARD GAROZ, Loïc | h3. Ethernet Card: |
27 | 1 | VEILLARD GAROZ, Loïc | |
28 | 1 | VEILLARD GAROZ, Loïc | Most of the Cent OS 6.5 based distributions were incompatible with the Ethernet of our NUC. A manual upgrade of the drivers were not a solution. We discarded most of the O.S due to this limitation. |
29 | 1 | VEILLARD GAROZ, Loïc | |
30 | 1 | VEILLARD GAROZ, Loïc | h3. CPU: |
31 | 1 | VEILLARD GAROZ, Loïc | |
32 | 1 | VEILLARD GAROZ, Loïc | The CPU of our Intel NUC wasn't sopported by CentOS 6.5, while it managed to control it without known issues. |
33 | 1 | VEILLARD GAROZ, Loïc | |
34 | 1 | VEILLARD GAROZ, Loïc | An upgrade of the BIOS have been performed during the installation of the server to the version 35. |
35 | 1 | VEILLARD GAROZ, Loïc | |
36 | 1 | VEILLARD GAROZ, Loïc | h3. FreePBX |
37 | 1 | VEILLARD GAROZ, Loïc | |
38 | 1 | VEILLARD GAROZ, Loïc | Due to this limitations the native CentOS 6.5 distribution didn't work. As FreePBX presented some advantages (easy configuration through web) we managed to install it over a debian and an ubuntu server. However, the limitations that it adds to the manual configuration of Asterisk, and the several bugs that we have spotted forced us to avoid it. |
39 | 1 | VEILLARD GAROZ, Loïc | |
40 | 1 | VEILLARD GAROZ, Loïc | h2. Conclusion and set up of the server |
41 | 1 | VEILLARD GAROZ, Loïc | |
42 | 1 | VEILLARD GAROZ, Loïc | After the study, Ubuntu 14.04.2 has been chosen to hold an asterisk server. |
43 | 1 | VEILLARD GAROZ, Loïc | |
44 | 1 | VEILLARD GAROZ, Loïc | h3. 1.Installation of the ubuntu server and dependencies: |
45 | 1 | VEILLARD GAROZ, Loïc | |
46 | 1 | VEILLARD GAROZ, Loïc | Ubuntu server with openssh have been installed using the DVD lector. |
47 | 1 | VEILLARD GAROZ, Loïc | |
48 | 1 | VEILLARD GAROZ, Loïc | After that, the following dependencies and upgrades have been carried out: |
49 | 1 | VEILLARD GAROZ, Loïc | |
50 | 1 | VEILLARD GAROZ, Loïc | sudo apt-get update; sudo apt-get upgrade -y; sudo apt-get dist-upgrade -y; sudo apt-get install -y build-essential git-core pkg-config subversion libjansson-dev sqlite autoconf automake libtool libxml2-dev libncurses5-dev unixodbc unixodbc-dev libasound2-dev libogg-dev libvorbis-dev libneon27-dev libsrtp0-dev libspandsp-dev libmyodbc uuid uuid-dev sqlite3 libsqlite3-dev;sudo shutdown -r now |
51 | 1 | VEILLARD GAROZ, Loïc | |
52 | 1 | VEILLARD GAROZ, Loïc | h3. 2.Installation of Asterisk 13: |
53 | 1 | VEILLARD GAROZ, Loïc | |
54 | 1 | VEILLARD GAROZ, Loïc | We downloaded it with wget and compiled it: |
55 | 1 | VEILLARD GAROZ, Loïc | |
56 | 1 | VEILLARD GAROZ, Loïc | wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz |
57 | 1 | VEILLARD GAROZ, Loïc | tar xvfz asterisk-13-current.tar.gz |
58 | 1 | VEILLARD GAROZ, Loïc | cd asterisk-* |
59 | 1 | VEILLARD GAROZ, Loïc | ./configure |
60 | 1 | VEILLARD GAROZ, Loïc | make menuselect |
61 | 1 | VEILLARD GAROZ, Loïc | |
62 | 1 | VEILLARD GAROZ, Loïc | In our case wgetrc file have been configured to deal with the proxy of our internet provider (before the satellite connection) |
63 | 1 | VEILLARD GAROZ, Loïc | |
64 | 1 | VEILLARD GAROZ, Loïc | |
65 | 1 | VEILLARD GAROZ, Loïc | |
66 | 1 | VEILLARD GAROZ, Loïc | An extensive and clear guide to add more modules can be found in the following link: http://www.mikeslab.net/?p=330 |