Browse Source

configurable 480 reply from media with session in progress

master
lazedo 6 years ago
parent
commit
ce2e4d3f2b
2 changed files with 6 additions and 2 deletions
  1. +2
    -2
      kamailio/default.cfg
  2. +4
    -0
      kamailio/defs.cfg

+ 2
- 2
kamailio/default.cfg View File

@ -745,8 +745,8 @@ failure_route[INTERNAL_FAULT]
} else if (isflagset(FLAG_SESSION_PROGRESS)) {
xlog("L_INFO", "$ci|failure|ignoring failure after session progress\n");
if (t_check_status("480")) {
xlog("L_INFO", "$ci|failure|overriding reply code 480 with 486\n");
send_reply("486", "Endpoint Not Available");
xlog("L_INFO", "$ci|failure|overriding reply code 480 with $sel(cfg_get.kazoo.override_media_reply_480)\n");
send_reply("$(sel(cfg_get.kazoo.override_media_reply_480){s.int})", "Endpoint Not Available");
}
} else if (t_check_status("403") && $T_reply_reason=="Forbidden") {
xlog("L_WARNING", "$ci|failure|Failed auth from IP $si\n");


+ 4
- 0
kamailio/defs.cfg View File

@ -21,6 +21,8 @@
#!trydef EXTERNAL_TO_INTERNAL_NO_RESPONSE_18X_TIMER 45000
#!trydef INTERNAL_TO_EXTERNAL_NO_RESPONSE_18X_TIMER 45000
#!trydef OVERRIDE_MEDIA_REPLY_480 603
kazoo.to_internal_no_response_timer = EXTERNAL_TO_INTERNAL_NO_RESPONSE_TIMER descr "external to internal no response timer"
kazoo.to_external_no_response_timer = INTERNAL_TO_EXTERNAL_NO_RESPONSE_TIMER descr "internal to external no response timer"
@ -33,6 +35,8 @@ kazoo.to_external_no_response_100_timer = INTERNAL_TO_EXTERNAL_NO_RESPONSE_100_T
kazoo.to_internal_no_response_18X_timer = EXTERNAL_TO_INTERNAL_NO_RESPONSE_18X_TIMER descr "external to internal no response timer after 18X"
kazoo.to_external_no_response_18X_timer = INTERNAL_TO_EXTERNAL_NO_RESPONSE_18X_TIMER descr "internal to external no response timer after 18X"
kazoo.override_media_reply_480 = OVERRIDE_MEDIA_REPLY_480 descr "sip code to send upstream when media returns 480 with session in progress"
#!ifndef MY_HOSTNAME
#!substdef "!MY_HOSTNAME!$HN(f)!g"
#!endif


Loading…
Cancel
Save