From d1492c0da40c6d881b8a2d4b7deed326b40bc242 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 18 Jun 2010 17:38:50 -0500 Subject: [PATCH] remove log --- src/mod/endpoints/mod_sofia/sofia_presence.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 87294c1e62..af0d5cf413 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -277,7 +277,7 @@ static void actual_sofia_presence_mwi_event_handler(switch_event_t *event) switch_stream_handle_t stream = { 0 }; switch_event_header_t *hp; struct mwi_helper h = { 0 }; - char *pname = NULL; + const char *pname = NULL; const char *call_id; const char *sub_call_id; int for_everyone = 0; @@ -308,9 +308,7 @@ static void actual_sofia_presence_mwi_event_handler(switch_event_t *event) if ((pname = switch_event_get_header(event, "sofia-profile"))) { - if (!(profile = sofia_glue_find_profile(pname))) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "No profile %s\n", pname); - } + profile = sofia_glue_find_profile(pname); } if (!profile) {