How to install and configure CentOS 6.0 Kamailio

  

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

Copyright © Windows knowledge All Rights Reserved