Browse Source

flush registrar cache

3.20
lazedo 11 years ago
parent
commit
6d89f947cb
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      kamailio/registrar-role.cfg

+ 11
- 0
kamailio/registrar-role.cfg View File

@ -154,4 +154,15 @@ route[ATTEMPT_AUTHORIZATION]
exit; exit;
} }
## kazoo event route , {"directory", "reg_flush") => reg-flush by kamailio limitations
## when a Event-Category or Event-Name has a underscore (_) we need to declare it with a dash (-)
event_route[kazoo:consumer-event-directory-reg-flush]
{
$var(user) = $(kzE{kz.json,Username}) + "@" + $(kzE{kz.json,Realm});
if ($sht(auth_cache=>$var(user)) != $null) {
xlog("L_INFO", "log|removing SIP credentials cache for $var(user)");
$sht(auth_cache=>$var(user)) = $null;
}
}
# vim: tabstop=4 softtabstop=4 shiftwidth=4 expandtab # vim: tabstop=4 softtabstop=4 shiftwidth=4 expandtab

Loading…
Cancel
Save