Revision
16739
Author
anthm
Date
2010-02-23 13:13:12 -0600 (Tue, 23 Feb 2010)

Log Message

allow domains with no dot in them as long as you specify a profile name

Modified Paths

Diff

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;
 			}