关键词不能为空

当前您在: 主页 > 英语 >

opensips文档

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2021-02-28 14:04
tags:

-

2021年2月28日发(作者:冷静英语)


1.



下载安装文件



通过


svn


下载源码

< br>


#svn co /svnroot/opensips/trunk


opensips_head




2.



基本安装需求库



libmysqlclient-dev


mysql- client-5.1


mysql-server-5.1




bison


flex


libncurses5-dev


3.



安装



#make


#make all include_modules=



#make install include_modules=




安装成功的安装目录,默认为


/usr/local/etc



4.



配置



配置



opensipsctlrc



文件 位置


/usr/local/etc/opensips/opensipsctlrc


,增加对数据库支持




# $$Id: opensipsctlrc 8289 2011-08-23 14:13:17Z razvancrainea $$


#


# The OpenSIPS configuration file for the control tools.



#


# Here you can set variables used in the opensipsctl and opensipsdbctl setup


# scripts. Per default all variables here are commented out, the control tools


# will use their internal default values.



## your SIP domain


# SIP_DOMAIN=



## chrooted directory


# $$CHROOT_DIR=



## database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY


, or DBTEXT,


## by default none is loaded


# If you want to setup a database with opensipsdbctl, you must at least specify


# this parameter.


DBENGINE=MYSQL



## database host


DBHOST=localhost



## database name (for ORACLE this is TNS name)


DBNAME=opensips



# database path used by dbtext or db_berkeley


DB_PATH=



## database read/write user


DBRWUSER=opensips



## password for database read/write user


DBRWPW=



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


DBROOTUSER=



# user name column


USERCOL=




# SQL definitions


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


# in db/schema/ too.



# FIXME



# FOREVER=


# DEFAULT_ALIASES_EXPIRES=$$FOREVER


# DEFAULT_Q=


# DEFAULT_CALLID=


# DEFAULT_CSEQ=


# DEFAULT_LOCATION_EXPIRES=$$FOREVER





# Program to calculate a message-digest fingerprint


# MD5=



# awk tool


# AWK=



# grep tool


# GREP=



# sed tool


# SED=




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


s


# 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


# accordingly in the script.



# opensips standard modules


# STANDARD_MODULES=



#




















msilo alias_db uri_db speeddial avpops auth_db pdt dialog



#




















dispatcher dialplan drouting nathelper load_balancer



# opensips extra modules


# EXTRA_MODULES=





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


## - default: none


# ALIASES_TYPE=



## control engine: FIFO or UNIXSOCK


## - default FIFO


# CTLENGINE=xmlrpc



## path to FIFO file


# OSIPS_FIFO=




## MI_CONNECTOR control engine: FIFO, UNIXSOCK, UDP


, XMLRPC


# MI_CONNECTOR=FIFO:/tmp/opensips_fifo


# MI_CONNECTOR=UNIXSOCK:/tmp/


# MI_CONNECTOR=UDP:192.168.2.133:8000


生成数据库脚本



# opensipsdbctl create


MySQL password for root:



INFO: test server charset


INFO: creating database opensips ...


INFO: Core OpenSIPS tables succesfully created.


Install presence related tables? (y/n): y


INFO: creating presence tables into opensips ...


INFO: Presence tables succesfully created.


Install tables for imc cpl siptrace domainpolicy carrierroute userblacklist? (y/n): y



INFO: creating extra tables into opensips ...


INFO: Extra tables succesfully created.



配置




文件位置


/usr/local/etc/opensips


更改监听网卡接口



# $$Id: 8758 2012-02-29 11:59:26Z vladut-paiu $$


#


# OpenSIPS residential configuration script


#






by OpenSIPS Solutions


#


# This script was generated via


#




the


# You can enable / disable more features / functionalities by


#




re-generating the scenario with different options.#


#


# Please refer to the Core CookBook at:


#







/Resources/DocsCookbooks


# for a explanation of possible statements, functions and parameters.


#




####### Global Parameters #########



debug=3


log_stderror=no


log_facility=LOG_LOCAL0



fork=yes


children=4



/* uncomment the following lines to enable debugging */


#debug=6


#fork=no


#log_stderror=yes



/* uncomment the next line to enable the auto temporary blacklisting of





not available destinations (default disabled) */


#disable_dns_blacklist=no



/* uncomment the next line to enable IPv6 lookup after IPv4 dns





lookup failures (default disabled) */


#dns_try_ipv6=yes



/* comment the next line to enable the auto discovery of local aliases





based on revers DNS on IPs */


auto_aliases=no




#listen=udp:127.0.0.1:5060




# CUSTOMIZE ME


listen=udp:172.16.1.12:5060




# CUSTOMIZE ME




disable_tcp=yes



disable_tls=yes




####### Modules Section ########



#set module path


mpath=




#### SIGNALING module


loadmodule



#### StateLess module


loadmodule



#### Transaction Module


loadmodule


modparam(

< br>modparam(


modparam(


modpara m(



#### Record Route Module


loadmodule


/* do not append from tag to the RR (no need for this script) */


modparam(



#### MAX ForWarD module


loadmodule



#### SIP MSG OPerationS module


loadmodule



#### FIFO Management Interface


loadmodule


modparam(




#### URI module


loadmodule


modparam(







-


-


-


-


-


-


-


-



本文更新与2021-02-28 14:04,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/681652.html

opensips文档的相关文章

  • 余华爱情经典语录,余华爱情句子

    余华的经典语录——余华《第七天》40、我不怕死,一点都不怕,只怕再也不能看见你——余华《第七天》4可是我再也没遇到一个像福贵这样令我难忘的人了,对自己的经历如此清楚,

    语文
  • 心情低落的图片压抑,心情低落的图片发朋友圈

    心情压抑的图片(心太累没人理解的说说带图片)1、有时候很想找个人倾诉一下,却又不知从何说起,最终是什么也不说,只想快点睡过去,告诉自己,明天就好了。有时候,突然会觉得

    语文
  • 经典古训100句图片大全,古训名言警句

    古代经典励志名言100句译:好的药物味苦但对治病有利;忠言劝诫的话听起来不顺耳却对人的行为有利。3良言一句三冬暖,恶语伤人六月寒。喷泉的高度不会超过它的源头;一个人的事

    语文
  • 关于青春奋斗的名人名言鲁迅,关于青年奋斗的名言鲁迅

    鲁迅名言名句大全励志1、世上本没有路,走的人多了自然便成了路。下面是我整理的鲁迅先生的名言名句大全,希望对你有所帮助!当生存时,还是将遭践踏,将遭删刈,直至于死亡而

    语文
  • 三国群英单机版手游礼包码,三国群英手机单机版攻略

    三国群英传7五神兽洞有什么用那是多一个武将技能。青龙飞升召唤出东方的守护兽,神兽之一的青龙。玄武怒流召唤出北方的守护兽,神兽之一的玄武。白虎傲啸召唤出西方的守护兽,

    语文
  • 不收费的情感挽回专家电话,情感挽回免费咨询

    免费的情感挽回机构(揭秘情感挽回机构骗局)1、牛牛(化名)向上海市公安局金山分局报案,称自己为了挽回与女友的感情,被一家名为“实花教育咨询”的情感咨询机构诈骗4万余元。

    语文