mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
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:
parent
a524ad6227
commit
b9c18c5261
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user