]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
part 2 of (SFSIP-167)
authorBrian West <brian@freeswitch.org>
Fri, 24 Jul 2009 15:07:16 +0000 (15:07 +0000)
committerBrian West <brian@freeswitch.org>
Fri, 24 Jul 2009 15:07:16 +0000 (15:07 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14345 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 4e9cef37d3de6beb3a97dda5e34a6474200d1879..d8904b540e6028d885c2915cd407b41468a860b2 100644 (file)
@@ -1380,17 +1380,17 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
                        
                        if (!switch_strlen_zero(register_proxy)) {
                                if (strncasecmp(register_proxy, "sip:", 4) && strncasecmp(register_proxy, "sips:", 5)) {
-                                       gateway->register_sticky_proxy = switch_core_sprintf(gateway->pool, "sip:%s", outbound_proxy);
+                                       gateway->register_sticky_proxy = switch_core_sprintf(gateway->pool, "sip:%s", register_proxy);
                                } else {
-                                       gateway->register_sticky_proxy = switch_core_strdup(gateway->pool, outbound_proxy);
+                                       gateway->register_sticky_proxy = switch_core_strdup(gateway->pool, register_proxy);
                                }
                        }
 
                        if (!switch_strlen_zero(outbound_proxy)) {
                                if (strncasecmp(outbound_proxy, "sip:", 4) && strncasecmp(outbound_proxy, "sips:", 5)) {
-                                       gateway->outbound_sticky_proxy = switch_core_sprintf(gateway->pool, "sip:%s", register_proxy);
+                                       gateway->outbound_sticky_proxy = switch_core_sprintf(gateway->pool, "sip:%s", outbound_proxy);
                                } else {
-                                       gateway->outbound_sticky_proxy = switch_core_strdup(gateway->pool, register_proxy);
+                                       gateway->outbound_sticky_proxy = switch_core_strdup(gateway->pool, outbound_proxy);
                                }
                        }