|
|
|
@ -53,9 +53,6 @@ modparam("rr", "enable_full_lr", RR_FULL_LR) |
|
|
|
modparam("rr", "enable_double_rr", RR_DOUBLE_RR) |
|
|
|
modparam("rr", "force_send_socket", RR_FORCE_SOCKET) |
|
|
|
|
|
|
|
######## Kamailio dialog module ######## |
|
|
|
loadmodule "dialog.so" |
|
|
|
|
|
|
|
######## Max-Forward processor module ######## |
|
|
|
loadmodule "maxfwd.so" |
|
|
|
modparam("maxfwd", "max_limit", 50) |
|
|
|
@ -495,11 +492,6 @@ route[PREPARE_INITIAL_REQUESTS] |
|
|
|
exit(); |
|
|
|
} |
|
|
|
|
|
|
|
if(is_method("INVITE")) |
|
|
|
{ |
|
|
|
dlg_manage(); |
|
|
|
} |
|
|
|
|
|
|
|
if (is_method("UPDATE")) { |
|
|
|
xlog("L_WARN", "$ci|end|update outside dialog not allowed\n"); |
|
|
|
send_reply("403", "Dialog does not exist"); |
|
|
|
@ -603,13 +595,6 @@ route[INTERNAL_TO_EXTERNAL_RELAY] |
|
|
|
} |
|
|
|
#!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"); |
|
|
|
|
|
|
|
if($sel(cfg_get.kazoo.use_progressive_timers) == 1) { |
|
|
|
@ -727,14 +712,6 @@ onreply_route[INTERNAL_REPLY] |
|
|
|
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"); |
|
|
|
} |
|
|
|
|
|
|
|
@ -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_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"); |
|
|
|
dlg_setflag(FLT_AOR); |
|
|
|
if ($hdr(X-KAZOO-INVITE-FORMAT) == "contact") { |
|
|
|
if(lookup("location", "$hdr(X-KAZOO-AOR)") > 0){ |
|
|
|
xlog("L_INFO", "$ci|end|routing to contact $ru\n"); |
|
|
|
|