Module: kamailio
Branch: master
Commit: 67dfb62cf15ab60401243c3632a587b64ed5d376
URL:
https://github.com/kamailio/kamailio/commit/67dfb62cf15ab60401243c3632a587b…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2015-07-15T09:15:40+02:00
modules/ims_usrloc_scscf: only remove impurecord if there are no active subscriptions
---
Modified: modules/ims_usrloc_scscf/impurecord.c
---
Diff:
https://github.com/kamailio/kamailio/commit/67dfb62cf15ab60401243c3632a587b…
Patch:
https://github.com/kamailio/kamailio/commit/67dfb62cf15ab60401243c3632a587b…
---
diff --git a/modules/ims_usrloc_scscf/impurecord.c
b/modules/ims_usrloc_scscf/impurecord.c
index fa96845..2ffb2d6 100644
--- a/modules/ims_usrloc_scscf/impurecord.c
+++ b/modules/ims_usrloc_scscf/impurecord.c
@@ -358,6 +358,7 @@ static inline void process_impurecord(impurecord_t* _r) {
LM_DBG("DBG:registrar_timer: Subscription has dialog record in hash
table with presentity uri <%.*s>\n", sub_dialog->pres_uri.len,
sub_dialog->pres_uri.s);
}
lock_release(&sub_dialog_table[sl].lock);
+ mustdeleteimpu = 0;
}
s = s->next;
}
@@ -367,7 +368,6 @@ static inline void process_impurecord(impurecord_t* _r) {
_r->barring,
get_impu_regstate_as_string(_r->reg_state));
flag = 0;
- mustdeleteimpu = 1;
hascontacts = 0;
num_contacts_to_expire = 0;
for (k = 0; (k < _r->num_contacts) && (k < MAX_CONTACTS_PER_IMPU);
k++) {