Skip to content

Commit

Permalink
[mod_sofia] Added missing %s in one form of contact string
Browse files Browse the repository at this point in the history
Added missing %s in contact header format string when formatting with
rfc_5626, extension number and IPv6.
  • Loading branch information
pfournier authored Dec 18, 2024
1 parent cb8e6de commit ec25d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mod/endpoints/mod_sofia/sofia.c
Original file line number Diff line number Diff line change
Expand Up @@ -4176,7 +4176,7 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag,

if (extension_in_contact) {
if (rfc_5626) {
format = strchr(sipip, ':') ? "<sip:%s@[%s]:%d>%s" : "<sip:%s@%s:%d%s>%s";
format = strchr(sipip, ':') ? "<sip:%s@[%s]:%d%s>%s" : "<sip:%s@%s:%d%s>%s";
gateway->register_contact = switch_core_sprintf(gateway->pool, format, extension,
sipip,
sofia_glue_transport_has_tls(gateway->register_transport) ?
Expand Down

0 comments on commit ec25d5d

Please sign in to comment.