]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3855 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 31 Jan 2012 17:03:09 +0000 (11:03 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 31 Jan 2012 17:03:09 +0000 (11:03 -0600)
src/mod/endpoints/mod_sofia/sofia.c

index 500fc6caceef5ee7d0362427d6216c7598cf069c..4634f9f9bdbc970386d2ab9d7441b3c1907dea8f 100644 (file)
@@ -2675,11 +2675,11 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
                                                        profile->tls_sip_port : profile->sip_port, params, str_rfc_5626);
 
                                } else {
-                                       format = strchr(sipip, ':') ? "<sip:%s@[%s]:%d%s>" : "<sip:%s@%s:%d%s%s>";
+                                       format = strchr(sipip, ':') ? "<sip:%s@[%s]:%d%s>" : "<sip:%s@%s:%d%s>";
                                        gateway->register_contact = switch_core_sprintf(gateway->pool, format, extension,
                                                        sipip,
                                                        sofia_glue_transport_has_tls(gateway->register_transport) ?
-                                                       profile->tls_sip_port : profile->sip_port, params,contact_params);
+                                                       profile->tls_sip_port : profile->sip_port, params);
                                }
                        } else {
                                if (rfc_5626) {