Windows XP Windows 7 Windows 2003 Windows Vista Windows教程綜合 Linux 系統教程
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟件教程
 Windows教程網 >> Linux系統教程 >> 關於Linux >> CentOS 6.0如何安裝配置Kamailio

CentOS 6.0如何安裝配置Kamailio

日期:2017/1/25 10:41:50      編輯:關於Linux

  Kamailio是一款sip服務器,能夠注冊服務器、重定向服務器,那麼CentOS 6.0系統要如何安裝Kamailio呢?下面小編將針對Kamailio的安裝配置給大家做個詳細介紹。

 CentOS 6.0如何安裝配置Kamailio

  1.編譯安裝

  下載源碼

  # 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

  用自己熟悉的編輯工具打開“modules.lst”文件,找到“exclude_modules”變量,刪除db_mysql字段(這裡可以根據自己的需要調整編譯的模塊)。然後編譯:

  # make all

  # make install

  缺省情況下,Kamailio的可執行文件安裝在“/usr/local/sbin”路徑下,配置文件安裝在“/usr/local/etc/kamailio”路徑下。

  幾個可執行文件功能如下:

  kamailio - Kamailio服務器的執行文件

  kamdbctl - 創建和管理數據庫的腳本

  kamctl - 管理和控制Kamailio服務器的腳本

  sercmd - CLI,一個命令行工具,訪問提供Kamailio服務器的接口

  2.配置

  配置環境變量:

  Kamailio的環境變量存儲在/usr/local/etc/kamailio/kamctlrc文件中,安裝時,就已經安裝好模板文件了,只需要編輯一些簡單的配置項即可。

  # 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=openserro

  DBROUSER=openserro

  ## password for database read only user

  DBROPW=openserro

  ## database super user (for ORACLE this is ‘scheme-creator’ user)

  DBROOTUSER=“root”

  # user name column

上一頁12下一頁共2頁

Copyright © Windows教程網 All Rights Reserved