Ubuntu12.04 install the Kamailio Server

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.