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