From: Anthony Minessale Date: Thu, 9 Jun 2011 15:36:35 +0000 (-0500) Subject: revert e2ed8c08ef4dec7d872f6d67227d4a4ffcc40b27 X-Git-Tag: v1.2-rc1~108^2~11^2~31^2~2^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7200408062444ff4ed4f50477a69f49bba3bea4d;p=thirdparty%2Ffreeswitch.git revert e2ed8c08ef4dec7d872f6d67227d4a4ffcc40b27 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 404c50c80d..1d65a15081 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -364,7 +364,6 @@ static void actual_sofia_presence_mwi_event_handler(switch_event_t *event) const char *call_id; const char *sub_call_id; int for_everyone = 0; - char *tmp_pname; switch_assert(event != NULL); @@ -390,15 +389,8 @@ static void actual_sofia_presence_mwi_event_handler(switch_event_t *event) switch_assert(dup_account != NULL); switch_split_user_domain(dup_account, &user, &host); - if (host && (tmp_pname = strstr(host, "::"))) { - *tmp_pname = '\0'; - tmp_pname += 2; - pname = tmp_pname; - profile = sofia_glue_find_profile(pname); - } - - if (!profile && (pname = switch_event_get_header(event, "sofia-profile"))) { + if ((pname = switch_event_get_header(event, "sofia-profile"))) { profile = sofia_glue_find_profile(pname); }