There is a length mismatch in register contact header calculation when need_outbound is false (e.g.: while in call) because snprintf is null terminated and when required length == length passed to snprintf the written chars are length -1. This happens only when contact_params and reg_contact_params are empty but reg_contact_uri_params is not empty.
This fixes the bug while pjsip fixes it upstream, will eventually file an issue over the upstream repo
There is a length mismatch in register contact header calculation when
need_outbound
is false (e.g.: while in call) becausesnprintf
is null terminated and when required length == length passed to snprintf the written chars arelength -1
. This happens only when contact_params and reg_contact_params are empty but reg_contact_uri_params is not empty.This fixes the bug while pjsip fixes it upstream, will eventually file an issue over the upstream repo