Kamailio is a sip server that can register servers and redirect servers. How do you install Kamailio on CentOS 6.0? The following small series will give you a detailed introduction to the installation and configuration of Kamailio.
1. compile and install
Download Source
# cd ~
# wget http://www.kamailio.org/pub/Kamailio/latest/src/kamailio-3.3.2_src.tar.gz
# tar zxvf kamailio-3.3.2_src.tar.gz
# cd kamailio-3.3.2
# make FLAVOUR=kamailio cfg
Open the “modules.lst” file with your familiar editing tools, find the "exclude_modules" variable, delete the db_mysql field (here you can adjust the compiled module according to your needs) ). Then compile:
# make all
# make install
By default, Kamailio executables are installed under the path "“/usr/local/sbin" The configuration file is installed under the path "/usr/local/etc/kamailio".
Several executable files have the following functions:
kamailio - Kamailio server executable file
kamdbctl - script for creating and managing databases
kamctl - management And scripts that control the Kamailio server
sercmd - CLI, a command line tool that accesses the interface that provides the Kamailio server
2. Configure
Configure environment variables:
Kamailio environment variables are stored in the /usr/local/etc/kamailio/kamctlrc file. When installing, the template file is already installed. You only need to edit some simple configuration items.
# cat /usr/local/etc/kamailio/kamctlrc
# $Id$
#
# The Kamailio configuration file for the control tools .
#
# Here you can set variables used in the kamctl and kamdbctl setup
# scripts. Per default all variables here are commented out, the control tools
# will use their internal default values.
## your SIP domain
SIP_DOMAIN=kamailio.org
## chrooted directory
# $CHROOT_DIR=“/path/to/chrooted/directory”
## database type: MYSQL, PGSQL, Oracle, DB_BERKELEY, or DBTEXT, by default none is loaded
# If You want to setup a database with kamdbctl, you must at least specify
# this parameter.
DBENGINE=MYSQL
## database host
DBHOST =localhost
## database name (for ORACLE this is TNS name)
DBNAME=openser
# database path used by dbtext or db_berkeley
# DB_PATH=“/usr/local/etc/kamailio/dbtext”
## database read/write user
DBRWUSER =openser
## password for database read/write user
DBRWPW=“openserrw”
## database read only user
# DBROUSER= Openererro
DBROUSER=openserro
## password for database read only user
DBROPW=openserro
## database super user (for ORACLE this is &lsquo ;scheme-creator’ user)
DBROOTUSER=“root”
# user name column
Previous12Next Total 2 Pages
I have learned Linux commands, the find command can be used to find directory files. Today, Xiaobian
Someone found an interesting problem in the Linux system, that is, the audio file cannot be played o
MemcacheQ as a simple distributed queue service, because I dont know about MemcacheQ, many people ha
in Linux system Now I can use the camera to make video video on the computer, so how to implement i
How to upgrade OpenSSH under Linux system?
How to mount an external device in a Linux system
Knowledge about Linux file types and extensions
How to change the NIC name in CentOS 6.X
Linux statistical data software WhatPulse User Guide
How to use Linux commands to view CPU usage
The specific steps to install Cobbler under Linux
How to deal with the database disappeared after modifying the root password of mysql under Linux?
Linux installation and configuration JDK and Eclipse steps
Linux mysql how to change the root password
Teach you a few tricks to solve the Win 7 network delay problem
XP and Windows 7 files can not be accessed each other solutions
How to use Win10 to quickly open the built-in gadgets
Kodu, a child development tool, joins the PC in
Teach you to know the internal interface of the notebook
What suspicious processes need to be aware of during the use of win7 Ultimate
Several problems in solving the virtual host's Internet access