Pārlūkot izejas kodu

ims_usrloc_scscf: Remove first Entry, if maxcontacts reached and maxcontact_behaviour is 2 (delete oldest)

Carsten Bock 10 gadi atpakaļ
vecāks
revīzija
850b7459ec
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      modules/ims_usrloc_scscf/impurecord.c

+ 1 - 1
modules/ims_usrloc_scscf/impurecord.c

@@ -478,7 +478,7 @@ int insert_scontact(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);
+		    mem_delete_ucontact(_r->newcontacts[0]);
                     break;
                 default://unknown
                     LM_ERR("unknown maxcontact behaviour..... ignoring\n");