Ubuntu12.04 install the Kamailio server official reference: Supervisor
Install the Kamailio server on Ubuntu 12.04
Official reference:Http://www.kamailio.org/wiki/install/4.0.x/git
Compile Kamailio 4.1.0 http://www.linuxidc.com/Linux/2014-01/95845.htm in Ubuntu 12.04
Kamailio Installation Guide http://www.linuxidc.com/Linux/2014-01/95846.htm
For the installation process, refer to git installation on the official website. Put the installation process in a shell, copy it directly, and add the execution permission.
The installation process has been tested many times and has been successfully installed on many hosts.
(If you prefer to execute one sentence, you can)
#! /Bin/sh
# Kamailio-4.0 installation process, copy it to ubuntu, shell run it
# Install necessary dependent libraries, including mysql
Sudo apt-get install mysql-server
Sudo apt-get install git-core gcc flex bison libmysqlclient-dev make libssl-dev libcurl4-openssl-dev libxml2-dev libpcre3-dev
# Create a folder and store the downloaded source code. You can select this directory as needed.
Sudo mkdir-p/usr/local/src/kamailio-4.0.
Cd/usr/local/src/kamailio-4.0
# Use git for source code download and checkout
Sudo git clone -- depth 1 git: // git.sip-router.org/sip-router kamailio
Cd kamailio & sudo git checkout-B 4.0 origin/4.0
# Compile and install the source code
Sudo make include_modules = "db_mysql" cfg
Sudo make all & sudo make install
# Modify the configuration file kamctlrm and set the database engine and default domain name
# The following modifications are necessary. If not, you cannot create a database.
# You can modify other user names and passwords. The default value is kamailio and kamailiorw.
# If you are not familiar with shell, you can also use vim and gedit to modify the file and remove # Of # DBENGINE = MYSQL and # SIP_DOMAIN = kamailio.org
# The following uses sed to implement
Sudo sed-I's/# DBENGINE = MYSQL/G'/usr/local/etc/kamailio/kamctlrc
Sudo sed-I's/# SIP_DOMAIN = kamailio.org/sip_domain?kamailio.org/g'/usr/local/etc/kamailio/kamctlrc
# Modify the configuration file kamailio. cfg. Add the following three lines at the beginning. You can also use gedit or vim to modify the file.
# Note: Here sed is used for modification. Be sure not to run it multiple times; otherwise, multiple modifications will be made.
Sudo sed-I '1i #! Define WITH_MYSQL '/usr/local/etc/kamailio. cfg
Sudo sed-I '1i #! Define WITH_AUTH '/usr/local/etc/kamailio. cfg
Sudo sed-I '1i #! Define WITH_USRLOCDB '/usr/local/etc/kamailio. cfg
Sudo kamdbctl create
After the installation is complete, you can add users.
Kamctl add 1000 1000
Kamctl add 1001 1001
Then run kamailio
Sudo kamctl start
The Installation Process of siremis is attached. Siremis is the web management interface of kamailio. See http://www.linuxidc.com/Linux/2014-10/108153.htm
Kamailio details: Click here
Kamailio's: Click here
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-10/108152.htm