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