Skip to content

Commit

Permalink
Merge pull request #2203 from nickvsnetworking/IMS_examples_refresh
Browse files Browse the repository at this point in the history
misc: examples; ims: Update kamailio.cfg example to function out of the box on current releases
  • Loading branch information
miconda committed Feb 5, 2020
2 parents a4d78bb + decd184 commit d74157a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions misc/examples/ims/pcscf/kamailio.cfg
Expand Up @@ -161,10 +161,11 @@ loadmodule "statistics"

loadmodule "ims_dialog"
loadmodule "ims_usrloc_pcscf"
loadmodule "ims_registrar_pcscf"
#!ifdef WITH_IPSEC
loadmodule "ims_ipsec_pcscf"
#!endif
loadmodule "ims_registrar_pcscf"


#!ifdef WITH_XMLRPC
loadmodule "xmlrpc"
Expand Down Expand Up @@ -329,6 +330,7 @@ modparam("ctl", "binrpc", "unix:/run/kamailio_pcscf/kamailio_ctl")
# ----------------- Settings for Dispatcher ---------------
modparam("dispatcher", "list_file", "/etc/kamailio_pcscf/dispatcher.list")

#!ifdef WITH_SBC
# Dispatcher: Enable Failover-Support
modparam("dispatcher", "flags", 2)
# Dispatcher: Overwrite Destination address, if required.
Expand All @@ -343,6 +345,7 @@ modparam("dispatcher", "sock_avp", "$avp(DISPATCHER_SOCK_AVP)")
modparam("dispatcher", "ds_ping_interval", 15)
# Actively query the gateways:
modparam("dispatcher", "ds_probing_mode", 1)
#!endif

# -- usrloc params --
#!ifdef DB_URL
Expand All @@ -353,7 +356,6 @@ modparam("ims_usrloc_pcscf", "db_url", DB_URL)
#!endif
modparam("ims_usrloc_pcscf", "db_mode", 1)
#!endif
modparam("ims_usrloc_pcscf", "hashing_type", 2)
modparam("ims_usrloc_pcscf", "enable_debug_file", 0)
modparam("ims_usrloc_pcscf", "match_contact_host_port", 1)
modparam("ims_registrar_pcscf", "is_registered_fallback2ip", 1)
Expand Down
12 changes: 6 additions & 6 deletions misc/examples/ims/pcscf/pcscf.cfg.sample
@@ -1,14 +1,14 @@
# IP-Adress for incoming SIP-Traffic, in the following format:

# SIP / UDP
listen=udp:11.22.33.44:5060
listen=udp:0.0.0.0:5060
# SIP / TCP
#listen=tcp:11.22.33.44:5060
#listen=tcp:0.0.0.0:5060
# SIP / TCP/TLS
#listen=tls:11.22.33.44:5061
#listen=tls:0.0.0.0:5061

# IPSEC / UDP
#!define IPSEC_LISTEN_ADDR "11.22.33.44"
#!define IPSEC_LISTEN_ADDR "0.0.0.0"
#!define IPSEC_CLIENT_PORT 5062
#!define IPSEC_SERVER_PORT 5063

Expand All @@ -33,7 +33,7 @@ alias=pcscf.mnc001.mcc001.3gppnetwork.org
##!define XMLRPC_WHITELIST_3 "127.0.0.1"

# Databases:
#!define DB_URL "con1=>mysql://pcscf:heslo@127.0.0.1/pcscf"
#!define DB_URL "mysql://pcscf:heslo@127.0.0.1/pcscf"
##!define DB_URL2 "con2=>mysql://pcscf:heslo@127.0.0.1/pcscf"

#!define SQLOPS_DBURL "pcscf=>mysql://pcscf:heslo@127.0.0.1/pcscf"
Expand Down Expand Up @@ -109,4 +109,4 @@ alias=pcscf.mnc001.mcc001.3gppnetwork.org
##!define WITH_REGINFO
##!define WITH_RTPPING
##!define WITH_WEBSOCKET
##!define WITH_IPSEC
#!define WITH_IPSEC

0 comments on commit d74157a

Please sign in to comment.