From: Anthony Minessale Date: Wed, 29 Dec 2010 21:04:19 +0000 (-0600) Subject: update X-Git-Tag: v1.2-rc1~223^2~2^2^2~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0920645d1f1b7f647a9849b6bbdaffeb07c162b1;p=thirdparty%2Ffreeswitch.git update --- 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; }