diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 4853dff3bf..7125bceb7c 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -3513,7 +3513,7 @@ SWITCH_STANDARD_API(sofia_contact_function) profile = sofia_glue_find_profile(profile_name); } - if (!profile) { + if (!profile && !zstr(domain)) { profile = sofia_glue_find_profile(domain); } }