Browse Source

remove strip headers

the use dialog module can slow down things a bit
master
lazedo 6 years ago
parent
commit
e39eabaf9c
2 changed files with 0 additions and 32 deletions
  1. +0
    -31
      kamailio/default.cfg
  2. +0
    -1
      kamailio/globals.cfg

+ 0
- 31
kamailio/default.cfg View File

@ -53,9 +53,6 @@ modparam("rr", "enable_full_lr", RR_FULL_LR)
modparam("rr", "enable_double_rr", RR_DOUBLE_RR) modparam("rr", "enable_double_rr", RR_DOUBLE_RR)
modparam("rr", "force_send_socket", RR_FORCE_SOCKET) modparam("rr", "force_send_socket", RR_FORCE_SOCKET)
######## Kamailio dialog module ########
loadmodule "dialog.so"
######## Max-Forward processor module ######## ######## Max-Forward processor module ########
loadmodule "maxfwd.so" loadmodule "maxfwd.so"
modparam("maxfwd", "max_limit", 50) modparam("maxfwd", "max_limit", 50)
@ -495,11 +492,6 @@ route[PREPARE_INITIAL_REQUESTS]
exit(); exit();
} }
if(is_method("INVITE"))
{
dlg_manage();
}
if (is_method("UPDATE")) { if (is_method("UPDATE")) {
xlog("L_WARN", "$ci|end|update outside dialog not allowed\n"); xlog("L_WARN", "$ci|end|update outside dialog not allowed\n");
send_reply("403", "Dialog does not exist"); send_reply("403", "Dialog does not exist");
@ -603,13 +595,6 @@ route[INTERNAL_TO_EXTERNAL_RELAY]
} }
#!endif #!endif
if (dlg_isflagset(FLT_AOR)) {
if($sel(cfg_get.kazoo.aor_strip_headers) == 1) {
xlog("L_INFO", "$ci|log|INTERNAL TO EXTERNAL AOR REMOVE HDR\n");
remove_hf_re($sel(cfg_get.kazoo.aor_strip_headers_regex));
}
}
t_on_reply("EXTERNAL_REPLY"); t_on_reply("EXTERNAL_REPLY");
if($sel(cfg_get.kazoo.use_progressive_timers) == 1) { if($sel(cfg_get.kazoo.use_progressive_timers) == 1) {
@ -727,14 +712,6 @@ onreply_route[INTERNAL_REPLY]
setflag(FLAG_SESSION_PROGRESS); setflag(FLAG_SESSION_PROGRESS);
} }
if (dlg_isflagset(FLT_AOR)) {
if($sel(cfg_get.kazoo.aor_strip_headers) == 1) {
xlog("L_INFO", "$ci|log|INTERNAL TO EXTERNAL REPLY AOR REMOVE HDR\n");
remove_hf_re($sel(cfg_get.kazoo.aor_strip_headers_regex));
}
}
if ($rs < 300) {
xlog("L_INFO", "$ci|pass|$T_req($si):$T_req($sp)\n"); xlog("L_INFO", "$ci|pass|$T_req($si):$T_req($sp)\n");
} }
@ -845,13 +822,6 @@ onsend_route {
} }
} }
#!trydef STRIP_HEADERS_TO_AOR 1
#!trydef STRIP_HEADERS_TO_AOR_REGEX "^P-.*|^R-.*"
kazoo.aor_strip_headers = STRIP_HEADERS_TO_AOR desc "should we remove headers when sending to AOR"
kazoo.aor_strip_headers_regex = STRIP_HEADERS_TO_AOR_REGEX desc "regex used to remove headers before sending to AOR"
#!trydef AOR_NOT_SUBSCRIBED_APPEND_REASON #!trydef AOR_NOT_SUBSCRIBED_APPEND_REASON
#!trydef AOR_NOT_SUBSCRIBED_REASON Reason: Q.850; cause=20;text="Subscriber Absent" #!trydef AOR_NOT_SUBSCRIBED_REASON Reason: Q.850; cause=20;text="Subscriber Absent"
@ -862,7 +832,6 @@ route[ROUTE_TO_AOR]
} }
xlog("L_INFO", "$ci|log|using AOR $hdr(X-KAZOO-AOR)\n"); xlog("L_INFO", "$ci|log|using AOR $hdr(X-KAZOO-AOR)\n");
dlg_setflag(FLT_AOR);
if ($hdr(X-KAZOO-INVITE-FORMAT) == "contact") { if ($hdr(X-KAZOO-INVITE-FORMAT) == "contact") {
if(lookup("location", "$hdr(X-KAZOO-AOR)") > 0){ if(lookup("location", "$hdr(X-KAZOO-AOR)") > 0){
xlog("L_INFO", "$ci|end|routing to contact $ru\n"); xlog("L_INFO", "$ci|end|routing to contact $ru\n");


+ 0
- 1
kamailio/globals.cfg View File

@ -9,7 +9,6 @@
#!trydef FLAG_SESSION_PROGRESS 6 #!trydef FLAG_SESSION_PROGRESS 6
#!trydef FLAG_IS_REPLY 7 #!trydef FLAG_IS_REPLY 7
#!trydef FLAG_SIP_TRACE 8 #!trydef FLAG_SIP_TRACE 8
#!trydef FLT_AOR 9
#!trydef FLT_T38 10 #!trydef FLT_T38 10
#!trydef FLT_NATS 11 #!trydef FLT_NATS 11
#!trydef FLAG_LOCAL_REQUEST 12 #!trydef FLAG_LOCAL_REQUEST 12


Loading…
Cancel
Save