From b9c18c526106c16233e0f033cdf2c3c18d5a5566 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 23 Feb 2010 19:13:12 +0000 Subject: [PATCH] allow domains with no dot in them as long as you specify a profile name git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16739 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 211e379c14..97f56f6671 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -2870,7 +2870,7 @@ SWITCH_STANDARD_API(sofia_contact_function) 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; }