Skip to content

Commit

Permalink
ims_usrloc_scscf: Remove first Entry, if maxcontacts reached and maxc…
Browse files Browse the repository at this point in the history
…ontact_behaviour is 2 (delete oldest)
  • Loading branch information
carstenbock committed Oct 23, 2015
1 parent 9cd4aef commit 850b745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ims_usrloc_scscf/impurecord.c
Expand Up @@ -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");
Expand Down

0 comments on commit 850b745

Please sign in to comment.