|
|
@ -69,7 +69,6 @@ loadmodule "sdpops.so" |
|
|
######## Generic Hash Table container in shared memory ######## |
|
|
######## Generic Hash Table container in shared memory ######## |
|
|
loadmodule "htable.so" |
|
|
loadmodule "htable.so" |
|
|
modparam("htable", "htable", "associations=>size=16;autoexpire=7200") |
|
|
modparam("htable", "htable", "associations=>size=16;autoexpire=7200") |
|
|
modparam("htable", "htable", "redirects=>size=16;autoexpire=5") |
|
|
|
|
|
modparam("htable", "db_url", "KAZOO_DB_URL") |
|
|
modparam("htable", "db_url", "KAZOO_DB_URL") |
|
|
|
|
|
|
|
|
####### RTIMER module ########## |
|
|
####### RTIMER module ########## |
|
|
@ -725,12 +724,6 @@ onreply_route[INTERNAL_REPLY] |
|
|
!isflagset(FLAG_SESSION_PROGRESS) && |
|
|
!isflagset(FLAG_SESSION_PROGRESS) && |
|
|
t_check_status("(180)|(183)|(200)") |
|
|
t_check_status("(180)|(183)|(200)") |
|
|
) { |
|
|
) { |
|
|
if ($avp(AVP_REDIRECT_KEY) != $null && |
|
|
|
|
|
$sht(redirects=>$avp(AVP_REDIRECT_KEY)) != $null |
|
|
|
|
|
) { |
|
|
|
|
|
xlog("L_INFO", "$ci|log|removing redirect mapping $avp(AVP_REDIRECT_KEY)\n"); |
|
|
|
|
|
$sht(redirects=>$avp(AVP_REDIRECT_KEY)) = $null; |
|
|
|
|
|
} |
|
|
|
|
|
xlog("L_INFO", "$ci|log|call setup, now ignoring abnormal termination\n"); |
|
|
xlog("L_INFO", "$ci|log|call setup, now ignoring abnormal termination\n"); |
|
|
setflag(FLAG_SESSION_PROGRESS); |
|
|
setflag(FLAG_SESSION_PROGRESS); |
|
|
} |
|
|
} |
|
|
@ -755,16 +748,8 @@ failure_route[INTERNAL_FAULT] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
# Handle redirects |
|
|
# Handle redirects |
|
|
if (t_check_status("302")) { |
|
|
|
|
|
if($T_rpl($hdr(X-Redirect-Server)) != $null) { |
|
|
|
|
|
route(INTERNAL_REDIRECT); |
|
|
|
|
|
} |
|
|
|
|
|
} else if (!t_check_status("407") && |
|
|
|
|
|
$avp(AVP_REDIRECT_KEY) != $null && |
|
|
|
|
|
$sht(redirects=>$avp(AVP_REDIRECT_KEY)) != $null |
|
|
|
|
|
) { |
|
|
|
|
|
xlog("L_INFO", "$ci|log|removing redirect mapping $avp(AVP_REDIRECT_KEY)\n"); |
|
|
|
|
|
$sht(redirects=>$avp(AVP_REDIRECT_KEY)) = $null; |
|
|
|
|
|
|
|
|
if (t_check_status("302") && $T_rpl($hdr(X-Redirect-Server)) != $null) { |
|
|
|
|
|
route(INTERNAL_REDIRECT); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
remove_hf_re("^X-.*"); |
|
|
remove_hf_re("^X-.*"); |
|
|
|