Kamailio 安装指南
# tar zxvf kamailio-3.3.2_src.tar.gz
# cd kamailio-3.3.2 # make FLAVOUR=kamailio cfg |
# make all
# make install |
# 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
## chrooted directory
## database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, or DBTEXT, by default none is loaded
## database host
## database name (for ORACLE this is TNS name)
# database path used by dbtext or db_berkeley
## database read/write user
## password for database read/write user
## database read only user
## password for database read only user
## database super user (for ORACLE this is 'scheme-creator' user)
# user name column
# SQL definitions
# FOREVER="2020-05-28 21:32:15"
# Program to calculate a message-digest fingerprint
# awk tool
# If you use a system with a grep and egrep that is not 100% gnu grep compatible,
# egrep tool
# sed tool
# tail tool
# expr tool
# Describe what additional tables to install. Valid values for the variables
# If to install tables for the modules in the EXTRA_MODULES variable.
# If to install presence related tables.
# Define what module tables should be installed.
# Kamailio standard modules
# Kamailio extra modules
## type of aliases used: DB - database aliases; UL - usrloc aliases
## control engine: FIFO or UNIXSOCK
## path to FIFO file
## check ACL names; default on (1); off (0)
## ACL names - if VERIFY_ACL is set, only the ACL names from below list
## verbose - debug purposes - default '0'
## do (1) or don't (0) store plaintext passwords
## OPENSER START Options
|
打开/usr/local/etc/kamailio/kamailio.cfg,添加下面几行(应该添加在"####### Defined
Values #########"这一行之前):
......
#!define WITH_MYSQL #!define WITH_AUTH #!define WITH_USRLOCDB #!define WITH_NAT ...... |
执行下面命令创建DB:
# /usr/local/sbin/kamdbctl create
|
3. 启动Kamailio服务
# /usr/local/sbin/kamctl start
|
4. 监视Kamailio
# /usr/local/sbin/kamctl moni
|
5. 添加用户帐号
# kamctl add 1000 1000
|
其中第一个1000为username;第二个1000为password,添加完毕后,配置你的SIP终端注册上来看看,祝你好运。
参考资料:http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git