From: Anthony Minessale Date: Tue, 23 Feb 2010 19:13:12 +0000 (+0000) Subject: allow domains with no dot in them as long as you specify a profile name X-Git-Tag: v1.0.6~394 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9c18c526106c16233e0f033cdf2c3c18d5a5566;p=thirdparty%2Ffreeswitch.git 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 --- 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; }