2024年11月CentOS 6.0如何安装配置Kamailio(2)

发布时间:

  ⑴USERCOL=“username”

  ⑵# SQL definitions

  ⑶# If you change this definitions here, then you must change them

  ⑷# in db/schema/entities.xml too.

  ⑸# FOREVER=“-- ::”

  ⑹# DEFAULT_ALIASES_EXPIRES=$FOREVER

  ⑺# DEFAULT_Q=“.”

  ⑻# DEFAULT_CALLID=“Default-Call-ID”

  ⑼# DEFAULT_CSEQ=“”

  ⑽# DEFAULT_LOCATION_EXPIRES=$FOREVER

  ⑾# Program to calculate a message-digest fingerprint

  ⑿# MD=“mdsum”

  ⒀# awk tool

  ⒁# AWK=“awk”

  ⒂# If you use a system with a grep and egrep that is not % gnu grep patible,

  ⒃# e.g. solaris, install the gnu grep (ggrep and specify this below.

  ⒄# grep tool

  ⒅# GREP=“grep”

  ⒆# egrep tool

  ⒇# EGREP=“egrep”

  ⒈# sed tool

  ⒉# SED=“sed”

  ⒊# tail tool

  ⒋# LAST_LINE=“tail -n ”

  ⒌# expr tool

  ⒍# EXPR=“expr”

  ⒎# Describe what additional tables to install. Valid values for the variables

  ⒏# below are yes/no/ask. With ask (default it will interactively ask the user

  ⒐# for an answer, while yes/no allow for automated, unassisted installs.

  ⒑# If to install tables for the modules in the EXTRA_MODULES variable.

  ⒒# INSTALL_EXTRA_TABLES=ask

  ⒓# If to install presence related tables.

  ⒔# INSTALL_PRESENCE_TABLES=ask

  ⒕# Define what module tables should be installed.

  ⒖# If you use the postgres database and want to change the installed tables, then you

  ⒗# must also adjust the STANDARD_TABLES or EXTRA_TABLES variable aordingly in the

  ⒘# kamdbctl.base script.

  ⒙# Kamailio standard modules

  ⒚# STANDARD_MODULES=“standard a lcr domain group permissions registrar usrloc msilo

  ⒛# alias_db uri_db speeddial avpops auth_db pdt dialog dispatcher

  ①# dialplan”

  ②# Kamailio extra modules

  ③# EXTRA_MODULES=“imc cpl siptrace domainpolicy carrierroute userblacklist htable purple”

  ④## type of aliases used: DB - database aliases; UL - usrloc aliases

  ⑤## - default: none

  ⑥# ALIASES_TYPE=“DB”

  ⑦## control engine: FIFO or UNIXSOCK

  ⑧## - default FIFO

  ⑨# CTLENGINE=“FIFO”

  ⑩## path to FIFO file

  Ⅰ# OSER_FIFO=“FIFO”

  Ⅱ## check ACL names; default on (; off (

  Ⅲ# VERIFY_ACL=

  Ⅳ## ACL names - if VERIFY_ACL is set, only the ACL names from below list

  Ⅴ## are aepted

  Ⅵ# ACL_GROUPS=“local ld int voicemail free-pstn”

  Ⅶ## verbose - debug purposes - default ‘’

  ⅧVERBOSE=

  Ⅸ## do ( or don‘t ( store plaintext passwords

  Ⅹ## in the subscriber table - default ’‘

  ㈠# STORE_PLAINTEXT_PW=

  ㈡## OPENSER START Options

  ㈢## PID file path - default is: /var/run/kamailio.pid

  ㈣# PID_FILE=/var/run/kamailio.pid

  ㈤PID_FILE=/var/run/kamailio.pid

  ㈥## Extra start options - default is: not set

  ㈦# example: start Kamailio with MB share memory: STARTOPTIONS=“-m ”

  ㈧# STARTOPTIONS=

  ㈨打开/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

  . 启动Kamailio服务

  # /usr/local/sbin/kamctl start

  . 监视Kamailio

  # /usr/local/sbin/kamctl moni

  . 添加用户帐号

  # kamctl add

  其中第一个为username;第二个为password,添加完毕后,配置你的SIP终端注册。

  上面就是CentOS .安装Kamailio的方法介绍了,Kamailio的编译安装需要下载源码,只需进行一些简单的配置即可,配置好后添加用户账号就可以使用了。