Ver Fonte

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

Carsten Bock há 10 anos atrás
pai
commit
850b7459ec
1 ficheiros alterados com 1 adições e 1 exclusões
  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");