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
This commit is contained in:
Anthony Minessale 2010-02-23 19:13:12 +00:00
parent a524ad6227
commit b9c18c5261
1 changed files with 1 additions and 1 deletions

View File

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