Browse Source

KAZOO-2363: do not remap the valid 6xx codes

3.17
karl anderson 12 years ago
parent
commit
cf249478c2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      kamailio/default.cfg

+ 1
- 1
kamailio/default.cfg View File

@ -556,7 +556,7 @@ failure_route[INTERNAL_FAULT]
remove_hf_re("X-.*"); remove_hf_re("X-.*");
# change 6xx to 4xx # change 6xx to 4xx
if (t_check_status("6[0-9][0-9]")) {
if (t_check_status("6[0-9][0-9]") && !t_check_status("600|603|604|606")) {
$var(new_code) = "4" + $(T_reply_code{s.substr,1,0}); $var(new_code) = "4" + $(T_reply_code{s.substr,1,0});
xlog("L_INFO", "$ci|log|sending 6XX reply as $var(new_code) $var(reply_reason)"); xlog("L_INFO", "$ci|log|sending 6XX reply as $var(new_code) $var(reply_reason)");
t_reply("$(var(new_code){s.int})", "$var(reply_reason)"); t_reply("$(var(new_code){s.int})", "$var(reply_reason)");


Loading…
Cancel
Save