[sr-dev] git:master:31c9b0c1: ims_usrloc_scscf: Implement overwrite oldest behaviour

Carsten Bock carsten at ng-voice.com
Tue Sep 8 20:50:56 CEST 2015


Module: kamailio
Branch: master
Commit: 31c9b0c16c3e2b14aa48d7ecdbe62ea6b9d1c6cc
URL: https://github.com/kamailio/kamailio/commit/31c9b0c16c3e2b14aa48d7ecdbe62ea6b9d1c6cc

Author: Carsten Bock <carsten at ng-voice.com>
Committer: Carsten Bock <carsten at ng-voice.com>
Date: 2015-09-08T20:50:46+02:00

ims_usrloc_scscf: Implement overwrite oldest behaviour

---

Modified: modules/ims_usrloc_scscf/impurecord.c

---

Diff:  https://github.com/kamailio/kamailio/commit/31c9b0c16c3e2b14aa48d7ecdbe62ea6b9d1c6cc.diff
Patch: https://github.com/kamailio/kamailio/commit/31c9b0c16c3e2b14aa48d7ecdbe62ea6b9d1c6cc.patch

---

diff --git a/modules/ims_usrloc_scscf/impurecord.c b/modules/ims_usrloc_scscf/impurecord.c
index 2ffb2d6..d783c06 100644
--- a/modules/ims_usrloc_scscf/impurecord.c
+++ b/modules/ims_usrloc_scscf/impurecord.c
@@ -453,7 +453,7 @@ int insert_ucontact(impurecord_t* _r, str* _contact, ucontact_info_t* _ci, ucont
                 case 2://overwrite oldest
                     LM_DBG("Too many contacts already registered, overwriting oldest for IMPU <%.*s>\n", _r->public_identity.len, _r->public_identity.s);
                     //we can just remove the first one seeing the contacts are ordered on insertion with newest last and oldest first
-                    //TODO:mem_delete_ucontact(_r, _r->contacts);
+                    delete_ucontact(_r->newcontacts[0]);
                     break;
                 default://unknown
                     LM_ERR("unknown maxcontact behaviour..... ignoring\n");




More information about the sr-dev mailing list