diff --git a/kamailio/defs.cfg b/kamailio/defs.cfg index a793f99..2c3e009 100644 --- a/kamailio/defs.cfg +++ b/kamailio/defs.cfg @@ -118,4 +118,13 @@ #!endif #!endif +#!trydef KZ_MULTI_HOMED 0 + +#!ifndef KZ_DISABLE_REGISTRAR_PORT +#!redefine KZ_MULTI_HOMED 1 +#!trydef KZ_REGISTRAR_PORT 7000 +#!endif + +mhomed=KZ_MULTI_HOMED + # vim: tabstop=4 softtabstop=4 shiftwidth=4 expandtab diff --git a/kamailio/local.cfg b/kamailio/local.cfg index e232100..edd3513 100644 --- a/kamailio/local.cfg +++ b/kamailio/local.cfg @@ -72,7 +72,7 @@ # udp4_raw_mtu = 1472 ################################################################################ -## BINDINGS +## KZ_MULTI_HOMED ################################################################################ ## This parameter is OPTIONAL. ## It will try to locate outbound interface @@ -80,8 +80,22 @@ ## requests use the incoming socket disregarding ## the destination location. When enabled Kamailio ## will select a socket that can reach the -## destination. This reduces performance. -mhomed=0 +## destination and enables config less webrtc/tls on freeswitch. +## This reduces performance. +###!define KZ_MULTI_HOMED 1 + +################################################################################ +## KZ_DISABLE_REGISTRAR_PORT +################################################################################ +## This parameter is OPTIONAL. +## It will disable publishing single proxy port on registrar success messages +## By default single port proxy is send on registrar success messages +## which enables config less in freeswitch for handling webrtc/tls +## ie, no certs in freeswitch, no webrtc/tls listeners on freeswitch +## by disabling single port proxy, ecallmgr needs to be started with +## 'use_transport_for_fs_path' set to true in its environment configuration +## +###!define KZ_DISABLE_REGISTRAR_PORT 1 ################################################################################ ## SIP traffic mirroring to SIP_TRACE server diff --git a/kamailio/registrar-role.cfg b/kamailio/registrar-role.cfg index 1531570..6c69a7c 100644 --- a/kamailio/registrar-role.cfg +++ b/kamailio/registrar-role.cfg @@ -291,7 +291,11 @@ route[SAVE_LOCATION] $var(ip) = "[" + $Ri + "]"; } +#!ifndef KZ_DISABLE_REGISTRAR_PORT + $var(port) = KZ_REGISTRAR_PORT; +#!else $var(port) = $Rp; +#!endif $var(AdvIP) = $RAi; if(af==INET6) {