Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # !KAMAILIO
- #!def WITH_DEBUG
- #!ifdef WITH_DEBUG
- debug=4
- log_stderror=yes
- #!else
- debug=2
- log_stderror=no
- #!endif
- memdbg=5
- memlog=5
- log_facility=LOG_LOCAL0
- fork=yes
- children=4
- /* uncomment the next line to disable TCP (default on) */
- #disable_tcp=yes
- /* uncomment the next line to disable the auto discovery of local aliases
- based on reverse DNS on IPs (default on) */
- #auto_aliases=no
- #!ifdef WITH_TLS
- enable_tls=yes
- #!endif
- # life time of TCP connection when there is no traffic
- # - a bit higher than registration expires to cope with UA behind NAT
- tcp_connection_lifetime=3605
- tcp_accept_no_cl=yes
- tcp_rd_buf_size=16384
- ####### Modules Section ########
- # set paths to location of modules (to sources or installation folders)
- #!ifdef WITH_SRCPATH
- mpath="modules"
- #!else
- mpath="/usr/local/lib64/kamailio/modules/"
- #!endif
- loadmodule "db_mysql.so"
- loadmodule "textopsx.so"
- loadmodule "websocket.so"
- loadmodule "xhttp.so"
- loadmodule "mi_fifo.so"
- loadmodule "kex.so"
- loadmodule "corex.so"
- loadmodule "tm.so"
- loadmodule "tmx.so"
- loadmodule "sl.so"
- loadmodule "rr.so"
- loadmodule "pv.so"
- loadmodule "maxfwd.so"
- loadmodule "usrloc.so"
- loadmodule "registrar.so"
- loadmodule "textops.so"
- loadmodule "siputils.so"
- loadmodule "xlog.so"
- loadmodule "sanity.so"
- loadmodule "ctl.so"
- loadmodule "cfg_rpc.so"
- loadmodule "mi_rpc.so"
- loadmodule "sdpops.so"
- #!ifdef WITH_AUTH
- loadmodule "auth.so"
- loadmodule "auth_db.so"
- #!endif
- #!ifdef WITH_NAT
- loadmodule "nathelper.so"
- loadmodule "rtpengine.so"
- #!endif
- #!ifdef WITH_TLS
- loadmodule "tls.so"
- #!endif
- #!ifdef WITH_DEBUG
- loadmodule "debugger.so"
- #!endif
- loadmodule "dialog.so"
- loadmodule "cnxcc.so"
- # loadmodule "evapi.so"
- # loadmodule "jansson.so"
- # loadmodule "rtjson.so"
- # ----------------- setting module-specific parameters ---------------
- # ----- mi_fifo params -----
- modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")
- # ----- tm params -----
- # auto-discard branches from previous serial forking leg
- modparam("tm", "failure_reply_mode", 3)
- # default retransmission timeout: 30sec
- modparam("tm", "fr_timer", 30000)
- # default invite retransmission timeout after 1xx: 120sec
- modparam("tm", "fr_inv_timer", 120000)
- # ----- rr params -----
- # add value to ;lr param to cope with most of the UAs
- modparam("rr", "enable_full_lr", 1)
- # do not append from tag to the RR (no need for this script)
- modparam("rr", "append_fromtag", 0)
- modparam("corex", "alias_subdomains", "MY_DOMAIN")
- # ----- registrar params -----
- modparam("registrar", "method_filtering", 1)
- /* uncomment the next line to disable parallel forking via location */
- # modparam("registrar", "append_branches", 0)
- /* uncomment the next line not to allow more than 10 contacts per AOR */
- #modparam("registrar", "max_contacts", 10)
- # max value for expires of registrations
- modparam("registrar", "max_expires", 3600)
- # set it to 1 to enable GRUU
- modparam("registrar", "gruu_enabled", 0)
- # ----- usrloc params -----
- /* enable DB persistency for location entries */
- modparam("usrloc", "db_url", DBURL)
- modparam("usrloc", "db_mode", 1)
- # ----- auth_db params -----
- #!ifdef WITH_AUTH
- modparam("auth_db", "db_url", DBURL)
- modparam("auth_db", "calculate_ha1", yes)
- modparam("auth_db", "password_column", "password")
- modparam("auth_db", "load_credentials", "")
- # modparam("auth_db", "use_domain", DOMAIN)
- #!endif
- #!ifdef WITH_NAT
- # ----- rtpproxy params -----
- modparam("rtpengine", "rtpengine_sock", "udp:127.0.0.1:2223")
- # ----- nathelper params -----
- modparam("nathelper", "natping_interval", 15)
- modparam("nathelper", "ping_nated_only", 1)
- modparam("nathelper", "sipping_bflag", FLB_NATSIPPING)
- modparam("nathelper", "sipping_from", "sip:pinger@kamailio.org")
- # params needed for NAT traversal in other modules
- modparam("nathelper|registrar", "received_avp", "$avp(RECEIVED)")
- modparam("usrloc", "nat_bflag", FLB_NATB)
- #!endif
- #!ifdef WITH_TLS
- # ----- tls params -----
- modparam("tls", "config", "/usr/local/etc/kamailio/tls.cfg")
- #!endif
- #!ifdef WITH_DEBUG
- # ----- debugger params -----
- modparam("debugger", "cfgtrace", 1)
- #!endif
- # modparam("evapi", "bind_addr", "127.0.0.1:8448")
- modparam("cnxcc", "redis", "addr=127.0.0.1;port=6379;db=1")
- modparam("cnxcc", "credit_check_period", 1)
- modparam("dialog", "dlg_flag", 13)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement