[OpenSIPS-Devel] [opensips] uac_registrant: avoid bulk re-registrations on large servers (#701)

Ovidiu Sas notifications at github.com
Wed Dec 16 19:30:10 CET 2015


> +		memcpy(new_rec->td.id.call_id.s, old_rec->td.id.call_id.s,
> +		    new_rec->td.id.call_id.len);
> +		memcpy(new_rec->td.id.loc_tag.s, old_rec->td.id.loc_tag.s,
> +		    new_rec->td.id.loc_tag.len);
> +		new_rec->td.loc_seq.value = old_rec->td.loc_seq.value;
> +		new_rec->last_register_sent = old_rec->last_register_sent;
> +		new_rec->registration_timeout = old_rec->registration_timeout;
> +		new_rec->state = old_rec->state;
> +	}
> +	return 0;
> +}
> +
> +int run_find_same_rec(void *e_data, void *data, void *r_data)
> +{
> +	reg_record_t *new_rec = (reg_record_t*)e_data;
> +	int i = (int*)data;

Thank you for spotting this out!

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/701/files#r47812804
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20151216/42676af4/attachment.htm>


More information about the Devel mailing list