|
|
@ -148,12 +148,6 @@ modparam("maxfwd", "max_limit", 50) |
|
|
######## SIP utilities [requires sl] ######## |
|
|
######## SIP utilities [requires sl] ######## |
|
|
loadmodule "siputils.so" |
|
|
loadmodule "siputils.so" |
|
|
|
|
|
|
|
|
######## SIP message formatting sanity checks [requires sl] ######## |
|
|
|
|
|
loadmodule "sanity.so" |
|
|
|
|
|
modparam("sanity", "default_checks", 1511) |
|
|
|
|
|
modparam("sanity", "uri_checks", 7) |
|
|
|
|
|
modparam("sanity", "autodrop", 0) |
|
|
|
|
|
|
|
|
|
|
|
######## Text operations module ######## |
|
|
######## Text operations module ######## |
|
|
loadmodule "textops.so" |
|
|
loadmodule "textops.so" |
|
|
loadmodule "textopsx.so" |
|
|
loadmodule "textopsx.so" |
|
|
@ -243,6 +237,9 @@ modparam("kazoo", "amqp_connection", "MY_AMQP_DENARY_URL") |
|
|
###### kazoo bindings ###### |
|
|
###### kazoo bindings ###### |
|
|
include_file "kazoo-bindings.cfg" |
|
|
include_file "kazoo-bindings.cfg" |
|
|
|
|
|
|
|
|
|
|
|
## sanity ## |
|
|
|
|
|
include_file "sanity.cfg" |
|
|
|
|
|
|
|
|
####### Role Configurations ########## |
|
|
####### Role Configurations ########## |
|
|
#!ifdef AUTHORIZATION_ROLE |
|
|
#!ifdef AUTHORIZATION_ROLE |
|
|
include_file "authorization-role.cfg" |
|
|
include_file "authorization-role.cfg" |
|
|
@ -403,36 +400,6 @@ route[CHECK_RETRANS] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
route[SANITY_CHECK] |
|
|
|
|
|
{ |
|
|
|
|
|
## CVE-2018-14767 |
|
|
|
|
|
if($(hdr(To)[1]) != $null) { |
|
|
|
|
|
xlog("second To header not null - dropping message"); |
|
|
|
|
|
drop; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!sanity_check()) { |
|
|
|
|
|
xlog("L_WARN", "$ci|end|message from $si:$sp is insane ($var(insane))\n"); |
|
|
|
|
|
drop; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!mf_process_maxfwd_header("10")) { |
|
|
|
|
|
xlog("L_WARN", "$ci|end|too much hops, not enough barley from $si:$sp\n"); |
|
|
|
|
|
send_reply("483", "Too Many Hops"); |
|
|
|
|
|
exit; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($ua == "friendly-scanner" || |
|
|
|
|
|
$ua == "sundayddr" || |
|
|
|
|
|
$ua == "pplsip" || |
|
|
|
|
|
$ua =~ "NiceGuy" || |
|
|
|
|
|
$ua =~ "PortSIP" || |
|
|
|
|
|
$ua =~ "sipcli" ) { |
|
|
|
|
|
xlog("L_WARN", "$ci|end|dropping message with user-agent $ua from $si:$sp\n"); |
|
|
|
|
|
drop; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
route[CLASSIFY_SOURCE] |
|
|
route[CLASSIFY_SOURCE] |
|
|
{ |
|
|
{ |
|
|
#!ifdef DISPATCHER_ROLE |
|
|
#!ifdef DISPATCHER_ROLE |
|
|
|