Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (16738 => 16739)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c 2010-02-23 19:12:53 UTC (rev 16738)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c 2010-02-23 19:13:12 UTC (rev 16739)
@@ -2870,7 +2870,7 @@
struct cb_helper cb;
switch_stream_handle_t mystream = { 0 };
- if (!domain || !strchr(domain, '.')) {
+ if (!domain || (!strchr(domain, '.') && strcmp(profile_name, domain))) {
domain = profile->name;
}