[OpenSIPS-Users] disable_tcp in OpenSIPS 2.3

Sumit Birla sbirla at tampahost.net
Mon Sep 18 10:03:37 EDT 2017


Here are the global parameters in the script:

log_stderror = no
log_facility = LOG_LOCAL0
log_level = 3
children = 4
auto_aliases = no
listen = udp:eth0:5060
disable_tcp=yes



The rest:

#### SIGNALING module
loadmodule "signaling.so"

#### StateLess module
loadmodule "sl.so"

#### Transaction Module
loadmodule "tm.so"
modparam("tm", "fr_timeout", 5)
modparam("tm", "fr_inv_timeout", 60)
modparam("tm", "restart_fr_on_each_reply", 0)
modparam("tm", "onreply_avp_mode", 1)

#### Record Route Module
loadmodule "rr.so"
/* do not append from tag to the RR (no need for this script) */
modparam("rr", "append_fromtag", 0)

#### MAX ForWarD module
loadmodule "maxfwd.so"

#### SIP MSG OPerationS module
loadmodule "sipmsgops.so"

#### FIFO Management Interface
loadmodule "mi_fifo.so"
modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
modparam("mi_fifo", "fifo_mode", 0666)

#### URI module
loadmodule "uri.so"
modparam("uri", "use_uri_table", 0)

#### MYSQL module
loadmodule "db_mysql.so"

#### USeR LOCation module
loadmodule "usrloc.so"
modparam("usrloc", "nat_bflag", "NAT")
modparam("usrloc", "db_mode",   2)


#### REGISTRAR module
loadmodule "registrar.so"
modparam("registrar", "max_expires", 600)
modparam("registrar", "max_contacts", 3)

#### AUTHentication modules with local cache
loadmodule "auth.so"
loadmodule "auth_db.so"
loadmodule "cachedb_local.so"

modparam("auth", "username_spec", "$avp(userspec)")
modparam("auth", "password_spec", "$avp(passwd)")
modparam("auth", "calculate_ha1", 1)
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
modparam("auth_db", "load_credentials", "$avp(passwd)=password;$avp(perms)=perms")


#### MULTI_DOMAIN SUPPORT
loadmodule "domain.so"
modparam("domain", "db_mode", 1)  # use caching


#### DIALOG module
loadmodule "dialog.so"
modparam("dialog", "dlg_match_mode", 1)
modparam("dialog", "default_timeout", 21600)  # 6 hours timeout
modparam("dialog", "db_mode", 2)
modparam("dialog", "profiles_with_value", "caller")  # to limit number of simultaneous calls


#### DIALPLAN for number translations
loadmodule "dialplan.so"

#### DB queries
loadmodule "avpops.so"

####  NAT modules
loadmodule "nathelper.so"
modparam("nathelper", "natping_interval", 20)
modparam("nathelper", "ping_nated_only", 1)
modparam("nathelper", "sipping_bflag", "SIP_PING")
modparam("nathelper", "sipping_from", "sip:pinger at mydomain.com") 
modparam("nathelper", "received_avp", "$avp(42)")
modparam("registrar", "received_avp", "$avp(42)")

loadmodule "proto_udp.so"
loadmodule “textops.so

modparam("auth_db|usrloc|uri", "use_domain", 1)
modparam("domain|usrloc|auth_db|uri|load_balancer|dialog|dialplan|avpops", "db_url",
    "mysql://xxxxxxxxxx")





More information about the Users mailing list