diff --git a/kamailio/dispatcher-role.cfg b/kamailio/dispatcher-role.cfg index 90c779f..cfb4046 100644 --- a/kamailio/dispatcher-role.cfg +++ b/kamailio/dispatcher-role.cfg @@ -100,8 +100,11 @@ route[DISPATCHER_FIND_ROUTES] ##### CALL-PARK #### if($(ru{uri.user}) =~ "\*3" && $sht(park=>$(ru{uri.user})@$(ru{uri.domain})) != $null) { $du = $sht(park=>$(ru{uri.user})@$(ruri{uri.domain})); - $sht(park=>$(ru{uri.user})@$(ruri{uri.domain})) = $null; xlog("L_INFO", "$ci|log|redirecting park request to $du"); + if ($hdr(Proxy-Authorization) != $null) { + xlog("L_INFO", "$ci|log|removed park redirect"); + $sht(park=>$(ru{uri.user})@$(ruri{uri.domain})) = $null; + } return; }