소스 검색

ims_usrloc_scscf: Implement overwrite oldest behaviour

Carsten Bock 10 년 전
부모
커밋
31c9b0c16c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/ims_usrloc_scscf/impurecord.c

+ 1 - 1
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");