Browse Source

handle directory flush with cache-only

4.3
lazedo 7 years ago
committed by Luis Azedo
parent
commit
9182cc50cd
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      kamailio/registrar-role.cfg

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

@ -355,6 +355,10 @@ event_route[kazoo:consumer-event-directory-reg-flush]
$sht(auth_cache=>$var(user)) = $null; $sht(auth_cache=>$var(user)) = $null;
} }
if( $(kzE{kz.json,Cache-Only}) == "true") {
return;
}
if(reg_fetch_contacts("location", "sip:$var(user)", "caller")) { if(reg_fetch_contacts("location", "sip:$var(user)", "caller")) {
$var(i) = 0; $var(i) = 0;
while($var(i) < $(ulc(caller=>count))) { while($var(i) < $(ulc(caller=>count))) {


Loading…
Cancel
Save