SIP Server Configuration Guide
SIP Server Configuration Guide
Table of Contents
SIP server on CentOS............................................................................................................................................................... 2
Installing FreePBX ............................................................................................................................................................... 2
Configuring Asterisk with FreePBX...................................................................................................................................... 5
SIP Server on Ubuntu ............................................................................................................................................................ 13
Installing Ubuntu ............................................................................................................................................................... 13
Installing and Configuring Asterisk ................................................................................................................................... 14
Installing FreePBX ............................................................................................................................................................. 17
Preparing MySQL .............................................................................................................................................................. 19
Configuring FreePBX ......................................................................................................................................................... 20
Installing a SIP Client in Windows ......................................................................................................................................... 30
Installing FreePBX
Please refer to the following link for a detailed installation guide.
Warning: Everything on the computer will be deleted and replaced with the FreeBPX Distro when it is installed.
2. Click OK.
4. Enter a password for the root account. This password will be used as the localhost login password later.
1. Enter root and its password you configured previously during the installation for the localhost login.
- Secret : suprema101
Password must be at least 8 digits long. You must use at least 2 characters and use it in combination with
numbers
- Dtmfmode : RFC2833
- Nat : Yes
9. Add user 102 in the same way with the details below.
Password must be at least 8 digits long. You must use at least 2 characters and use it in combination with
numbers)
- Dtmfmode : RFC2833
- Nat : Yes
11. Click on the SIP nat dropdown list and select Yes.
NAT : yes
IP Configuration : Static IP
Example: If the IP provided by the router is 192.168.11.153, the IP range is 192.168.11.0 and the subnet is
255.255.255.0 (C class)
Please refer to the following subnetting reference.
15. Set Video Support to Enabled and select all video codecs.
- tcpenable = yes
- tcpbindaddr = 0.0.0.0
- transport = tcp
20. Click on the transport dropdown box and select TCP Only.
21. Configure user 102 the same as user 101 with transport : TCP Only.
20. Click on Apply Config on the top menu bar to apply the configuration.
Please refer to additional warnings regarding the installation of FreePBX 12 on Ubuntu Server 14.04 LTS in the following
link. Please note that the instructions in the link are not identical as shown below.
Installing Ubuntu
1. On the Software selection page, make sure that you select ‘OpenSSH Server’ and ‘LAMP Packages’ to install the
essential packages.
2. Configure your root password by entering the command below (excluding the #).
# sudo –i
# reboot
# cd /usr/src
# wget https://iksemel.googlecode.com/files/iksemel-1.4.tar.gz
# tar xf iksemel-1.4.tar.gz
# cd iksemel-*
# ./configure
# make
# make install
# cd /usr/src
# wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-
current.tar.gz
# wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz
# wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-12-current.tar.gz
# git clone https://github.com/akheron/jansson.git
# git clone https://github.com/asterisk/pjproject.git
2. Compile and install DAHDI by entering the commands below. Skip this step if there is a compilation error.
If you don't have any physical hardware you don't have to run these commands.
3. Compile and install LIBPRI by entering the commands below. Skip this step if there is a compilation error.
If you don't have any physical hardware you don't need to run these commands.
# cd /usr/src
# tar xvfz libpri-1.4-current.tar.gz
# cd libpri-*
# make
# make install
# cd /usr/src/pjproject
# ./configure --enable-shared --disable-sound --disable-resample --disable-video --disable-opencore-
amr
# make dep
# make
# make install
# cd /usr/src/jansson
# autoreconf -i
# ./configure
# make
# make install
# cd /usr/src
# tar xvfz asterisk-12-current.tar.gz
# cd asterisk-*
# ./configure
# contrib/scripts/get_mp3_source.sh
# make menuselect
# make
# make install
# make config
# ldconfig
# cd /var/lib/asterisk/sounds
# wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en-wav-
current.tar.gz
# tar xfz asterisk-extra-sounds-en-wav-current.tar.gz
# rm -f asterisk-extra-sounds-en-wav-current.tar.gz
# Wideband Audio download
# wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en-g722-
current.tar.gz
# tar xfz asterisk-extra-sounds-en-g722-current.tar.gz
# rm -f asterisk-extra-sounds-en-g722-current.tar.gz
# wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-12.0-latest.tgz
# tar vxfz freepbx-12-latest.tgz
# cd freepbx
2. Now create the Asterisk user and set ownership permissions by entering the commands below.
# useradd -m asterisk
# chown asterisk. /var/run/asterisk
# chown -R asterisk. /etc/asterisk
# chown -R asterisk. /var/{lib,log,spool}/asterisk
# chown -R asterisk. /usr/lib/asterisk
# rm -rf /var/www/html
EOF
You may need to verify these paths, if you're not on a x86_64 machine. You can use the command `find / -name
libmyodbc.so` to verify the location
Edit or create /etc/odbc.ini and add the following section. Note that, again, this command assumes you are installing to
a new machine, and the file is empty. Please manually verify the contents of the files if this is not the case.
EOF
# ./start_asterisk start
# ./install_amp --installdb --username=asteriskuser --password=${ASTERISK_DB_PW}
# amportal chown
# amportal a ma installall
# amportal a reload
# amportal a ma refreshsignatures
# amportal chown
5. Finally, set one last mod and start FreePBX by entering the commands below.
# ln -s /var/lib/asterisk/moh /var/lib/asterisk/mohmp3
# amportal restart
3. Click FreePBX Administration and login with the FreePBX administration account you created previously.
- Secret : suprema101
• Password must be at least 8 digits long. You must use at least 2 characters and use it in combination with numbers
- Dtmfmode : RFC2833
- Secret : suprema102
• Password must be at least 8 digits long. You must use at least 2 characters and use it in combination with numbers
- Dtmfmode : RFC2833
13. Click on the SIP nat dropdown list and select Yes.
Example: If the IP provided by the router is 192.168.11.153, the IP range is 192.168.11.0 and the subnet is
255.255.255.0 (C class)
Please refer to the following subnetting reference.
12. An icon on the bottom of the screen should now show that you are online.
15. Set Camera, Video codec to default and check Disable H.263+.
Please refer to the device manual and administrator’s manual regarding device and BioStar 2 configuration.