From ec25d5df77c2293daa220640cef73548cc816217 Mon Sep 17 00:00:00 2001 From: Patrice Fournier Date: Wed, 18 Dec 2024 16:23:50 -0500 Subject: [PATCH] [mod_sofia] Added missing %s in one form of contact string Added missing %s in contact header format string when formatting with rfc_5626, extension number and IPv6. --- src/mod/endpoints/mod_sofia/sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 43bd68b923..a370b52442 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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, ':') ? "%s" : "%s"; + format = strchr(sipip, ':') ? "%s" : "%s"; gateway->register_contact = switch_core_sprintf(gateway->pool, format, extension, sipip, sofia_glue_transport_has_tls(gateway->register_transport) ?