提交 cfb23354 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-4462 add log message to point out this problem in the future

上级 365b9feb
...@@ -3808,6 +3808,9 @@ static void actual_message_query_handler(switch_event_t *event) ...@@ -3808,6 +3808,9 @@ static void actual_message_query_handler(switch_event_t *event)
if (globals.message_query_exact_match) { if (globals.message_query_exact_match) {
if ((profile = (vm_profile_t *) switch_core_hash_find(globals.profile_hash, domain))) { if ((profile = (vm_profile_t *) switch_core_hash_find(globals.profile_hash, domain))) {
parse_profile(); 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 { } else {
for (hi = switch_hash_first(NULL, globals.profile_hash); hi; hi = switch_hash_next(hi)) { for (hi = switch_hash_first(NULL, globals.profile_hash); hi; hi = switch_hash_next(hi)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论