suiyuemanbu left a comment (kamailio/kamailio#4330)
while(i < idx->nr) { if(idx->dlist[i].uri.len == address->len && strncasecmp(idx->dlist[i].uri.s, address->s, address->len) == 0) { /* destination address found */ old_state = idx->dlist[i].flags;
[...]
return 0; //Removing this return will meet your needs. !!! } i++; }