]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
allow domains with no dot in them as long as you specify a profile name
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 23 Feb 2010 19:13:12 +0000 (19:13 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 23 Feb 2010 19:13:12 +0000 (19:13 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16739 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index 211e379c14dbfbcfd93e8f365f2e50790b004cf5..97f56f667183e566ca03dfdca64a87a23e3f79e9 100644 (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;
                        }