From cfb2335406d7558bbe59ed2f224ba8a2a771e350 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 27 Jul 2012 15:27:01 -0500 Subject: [PATCH] FS-4462 add log message to point out this problem in the future --- src/mod/applications/mod_voicemail/mod_voicemail.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 699bc96311..51677c5b3f 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -3808,6 +3808,9 @@ static void actual_message_query_handler(switch_event_t *event) if (globals.message_query_exact_match) { if ((profile = (vm_profile_t *) switch_core_hash_find(globals.profile_hash, domain))) { parse_profile(); + } else { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, + "Cound not find a profile for domain: [%s] Returning 0 messages\nWhen message-query-exact-match is enabled you must have a dedicated vm profile per distinct domain name you wish to use.\n", domain); } } else { for (hi = switch_hash_first(NULL, globals.profile_hash); hi; hi = switch_hash_next(hi)) {