Browse Source

only add x-headers for INVITE|MESSAGE|REFER

* also excludes in-dialog
master
lazedo 6 years ago
parent
commit
9457bd97ee
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      kamailio/auth.cfg

+ 4
- 0
kamailio/auth.cfg View File

@ -22,6 +22,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});


Loading…
Cancel
Save