diff --git a/kamailio/auth.cfg b/kamailio/auth.cfg index e85e657..780fda7 100644 --- a/kamailio/auth.cfg +++ b/kamailio/auth.cfg @@ -17,6 +17,10 @@ route[AUTH_HEADERS] { remove_hf_re("^X-"); + if (!is_method("INVITE|MESSAGE|REFER") || has_totag()) { + return; + } + xavp_params_implode("hf", "$var(outx)"); $var(out) = $(var(outx){re.subst,/^(.*);$$/\1/}); $var(c) = $(var(out){param.count});