Ubuntu under compile run Kamailio

Source: Internet
Author: User

Kamailio is an open-source SIP server, formerly known as OpenSER

Ubuntu version is: 10.04.4

"Prepare before compiling"

Before compiling, you need to install the following software

sudo apt-get install gcc

sudo apt-get install Flex

sudo apt-get install Bison

sudo apt-get install Libmysqlclient15-dev

sudo apt-get install make

sudo apt-get install Libcurl4-openssl-dev

sudo apt-get install Libxml2-dev

sudo apt-get install Libpcre3-dev

Download

1,:http://www.kamailio.org/pub/kamailio/latest/src/

2, download the compressed package: kamailio-4.3.1_src.tar.gz

Compiler

1, decompression TAR-ZXVF kamailio-4.1.0_src.tar.gz

2,make All

"Installation and Configuration"

1,make Install

2, configure/usr/local/etc/kamailio/kamailio.cfg, this configuration file does not seem to need to configure

3, Configuration/USR/LOCAL/ETC/KAMAILIO/KAMCTLRC

sip_domain=X.x.x.xdbengine=mysql## Database Hostdbhost=localhost## database name ( forOracle This  isTNS name) DBNAME=kamailio# database path used by dbtext, Db_berkeley or sqlite# db_path="/usr/local/etc/kamailio/dbtext"# # Database Read/Write Userdbrwuser="Kamailio"# # Password forDatabase read/Write USERDBRWPW="KAMAILIORW"# # Database Read Only Userdbrouser="Kamailioro"

"Install MySQL server"

"Build Database"

/USR/LOCAL/SBIN/KAMDBCTL Create

"Add Users"

Kamctl Add 1 1

"Install Rtpproxy"

Apt-get Install Rtpproxy

"Configure Rtpproxy"

Vim/etc/default/rtpproxy, the content is changed as follows:

 for rtpproxy# the control socket. #CONTROL_SOCK="unix:/var/run/rtpproxy/rtpproxy.sock" this line:control_sock =udp:127.0.    0.1:7722# Additional options that is passed to the daemon. Extra_opts= ""listen_addr=x.x.x.x #公网IPEXTRA_OPTS="-L ${ LISTEN_ADDR}"

"Restart Rtpproxy"

/etc/init.d/rtpproxy restart

"Start Service"

./kamctl Start

Ubuntu under compile run Kamailio

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.