cleanup since from_domain is now in the gateway and will default to proxy , realm or from-domain if set properly.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14253 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West
2009-07-14 20:56:09 +00:00
parent 06782dbe57
commit e3a2e3d41d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1443,10 +1443,10 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
if (!strncasecmp(proxy, "sip:", 4)) {
gateway->register_proxy = switch_core_strdup(gateway->pool, proxy);
gateway->register_to = switch_core_sprintf(gateway->pool, "sip:%s@%s", username, register_proxy ? register_proxy + 4 : proxy + 4);
gateway->register_to = switch_core_sprintf(gateway->pool, "sip:%s@%s", username, from_domain);
} else {
gateway->register_proxy = switch_core_sprintf(gateway->pool, "sip:%s", proxy);
gateway->register_to = switch_core_sprintf(gateway->pool, "sip:%s@%s", username, register_proxy ? register_proxy : proxy);
gateway->register_to = switch_core_sprintf(gateway->pool, "sip:%s@%s", username, from_domain);
}
gateway->expires_str = switch_core_strdup(gateway->pool, expire_seconds);