VoiSmart / pjsip-android-builder

Complete Android build environment for PJSIP with OpenSSL, OpenH264, Opus and G.729
225 stars 135 forks source link

Missing contact header in sip registration after ip change while in call #54

Closed aenonGit closed 11 months ago

aenonGit commented 11 months ago

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