[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.
This commit is contained in:
parent
cb8e6de117
commit
ec25d5df77
|
@ -4176,7 +4176,7 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag,
|
||||||
|
|
||||||
if (extension_in_contact) {
|
if (extension_in_contact) {
|
||||||
if (rfc_5626) {
|
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,
|
gateway->register_contact = switch_core_sprintf(gateway->pool, format, extension,
|
||||||
sipip,
|
sipip,
|
||||||
sofia_glue_transport_has_tls(gateway->register_transport) ?
|
sofia_glue_transport_has_tls(gateway->register_transport) ?
|
||||||
|
|
Loading…
Reference in New Issue