好文档就是一把金锄头!
欢迎来到金锄头文库![会员中心]
电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本

Opensips 配置文件.pdf

11页
  • 卖家[上传人]:飞****9
  • 文档编号:143108679
  • 上传时间:2020-08-26
  • 文档格式:PDF
  • 文档大小:160.47KB
  • / 11 举报 版权申诉 马上下载
  • 文本预览
  • 下载提示
  • 常见问题
    • Opensips配置文件 Opensips 配置文件Opensips.conf ####### 全局定 (义Global Parameters) 文件的一部分包含了这OpenSIPS 的几个工作参 #######数,包括 SIP 服的听务监ip 端口和对debug 等级 ######### debug=3 #置日志,数设级别值-3到4,默认2 数越大,就会有更多的信息被写到日志 #置设为4系的性能会下降的(统sluggish) log_stderror=no #置设为yes 服器会打印信息到准出务调试标错误输 #置设为no则syslog 会被使用 log_facility=LOG_LOCAL0 fork=yes #置了设yes程会在在后台运行,有候在前台运行也很重要,可以来找到脚本进时 #中的如果错误fork disabled OpenSIPs只能听一个网卡,监tpc/tls也会自 #动disabled 在程模式,只有单进udp接口允许 children=4 #每个UDP地址打开子程数,不于进过对tcp程没有影响进 /* uncomment the following lines to enable debugging */ #debug=6 #fork=no #log_stderror=yes /* uncomment the next line to disable TCP (default on) */ #disable_tcp=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 /* uncomment the next line to disable the auto discovery of local aliases based on revers DNS on IPs (default on) */ #auto_aliases=no /* uncomment the following lines to enable TLS support (default off) */ #disable_tls = no #listen = tls:your_IP:5061 #tls_verify_server = 1 #tls_verify_client = 1 #tls_require_client_certificate = 0 #tls_method = TLSv1 #tls_certificate = /usr/local/etc/opensips/tls/user/user-cert.pem 1 Opensips配置文件 #tls_private_key = /usr/local/etc/opensips/tls/user/user-privkey.pem #tls_ca_list = /usr/local/etc/opensips/tls/user/user-calist.pem port=5060 #听端口,一般不用改监 /* uncomment and configure the following line if you want opensips to bind on a specific interface/port/proto (default bind on all available) */ #listen=udp:192.168.1.2:5060 ####### 模 (块 Modules Section) ######## 包含了外部的列表,些外部是核心所没有的但却是能展其功能的。

      模库这库够现#### #####的加使用块载loadmodule #set module path mpath=/usr/local/lib/opensips/modules/ #模搜索路径块 /* uncomment next line for MySQL DB support */ #loadmodule db_mysql.so loadmodule signaling.so loadmodule sl.so loadmodule tm.so loadmodule rr.so loadmodule maxfwd.so loadmodule usrloc.so loadmodule registrar.so loadmodule textops.so loadmodule mi_fifo.so loadmodule uri.so loadmodule xlog.so loadmodule acc.so /* uncomment next lines for MySQL based authentication support NOTE: a DB (like db_mysql) module must be also loaded */ #loadmodule auth.so #loadmodule auth_db.so #AUTH_DB 模是以数据基的模块库为础认证块 /* uncomment next line for aliases support NOTE: a DB (like db_mysql) module must be also loaded */ #loadmodule alias_db.so /* uncomment next line for multi-domain support NOTE: a DB (like db_mysql) module must be also loaded NOTE: be sure and enable multi-domain support in all used modules (see multi-module params section ) */ #loadmodule domain.so /* uncomment the next two lines for presence server support NOTE: a DB (like db_mysql) module must be also loaded */ 2 Opensips配置文件 #loadmodule presence.so #loadmodule presence_xml.so # ----------------模配置(块setting module-specific parameters)--------------- #模有一些参数是需要被合适的置的。

      些参数可以使用块设这modparam(modulename, #parametername,parametervale)行配置进 # ----- mi_fifo params ----- modparam(mi_fifo, fifo_name, /tmp/opensips_fifo) #命名管道被建用来听创监 # 和外来命令读 # ----- rr params ----- # add value to ;lr param to cope with most of the UAs modparam(rr,enable_full_lr,1) #支持那些不 对record_route 域行管理的 头进SIP 客端户 #如果 设为1,;lr=on 将被使用而不是;lr # do not append from tag to the RR (no need for this script) modparam(rr, append_fromtag, 0) # ----- registrar params ----- /* uncomment the next line not to allow more than 10 contacts per AOR */ #modparam(registrar, max_contacts, 10) # ----- usrloc params ----- modparam(usrloc,db_mode,0) # usrloc 模用定位服,当用注册的候它块负责户务户时 #保存定位信息,在儿的这0代表内存,关掉服器信息务 #会失丢 /* uncomment the following lines if you want to enable DB persistency for location entries */ #modparam(usrloc, db_mode, 2) #modparam(usrloc, db_url, #mysql://opensips:opensipsrwlocalhost/opensips) # ----- uri params ----- modparam(uri, use_uri_table, 0) # ----- acc params ----- /* what sepcial events should be accounted ? */ modparam(acc, early_media, 1) modparam(acc, report_ack, 1) modparam(acc, report_cancels, 1) 3 Opensips配置文件 /* by default ww do not adjust the direct of the sequential requests. if you enable this parameter, be sure the enable append_fromtag in rr module */ modparam(acc, detect_direction, 0) /* account triggers (flags) */ modparam(acc, failed_transaction_flag, 3) modparam(acc, log_flag, 1) modparam(acc, log_missed_flag, 2) /* uncomment the following lines to enable DB accounting also */ modparam(acc, db_flag, 1) modparam(acc, db_missed_flag, 2) # ----- auth_db params ----- /* uncomment the following lines if you want to enable the DB based authentication */ #modparam(auth_db, calculate_ha1, yes) #calculate_hal 告 诉auth_db 模块 #要使用明文密码 #modparam(auth_db, password_column, password) #modparam(auth_db, db_url, #mysql://opensips:opensipsrwlocalhost/opensips) #modparam(auth_db, load_credentials, ) # ----- alias_db params ----- /* uncomment the following lines if yo。

      点击阅读更多内容
      关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
      手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
      ©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.