From 0920645d1f1b7f647a9849b6bbdaffeb07c162b1 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 29 Dec 2010 15:04:19 -0600 Subject: [PATCH] update --- src/mod/endpoints/mod_sofia/mod_sofia.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 6dda4a74f8..ca1ddb1c76 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -3498,6 +3498,10 @@ SWITCH_STANDARD_API(sofia_contact_function) if (zstr(domain)) { domain = profile->name; } + + if (!zstr(profile->domain_name) && !zstr(profile_name) && !strcmp(profile_name, profile->name)) { + domain = profile->domain_name; + } select_from_profile(profile, user, domain, concat, exclude_contact, &mystream); sofia_glue_release_profile(profile); @@ -3937,7 +3941,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session goto error; } - if (profile->domain_name && profile->domain_name != profile->name) { + if (profile->domain_name && strcmp(profile->domain_name, profile->name)) { profile_name = profile->domain_name; }