提交 e341914d authored 作者: Brian West's avatar Brian West

Add MODEVENT-21 and a small tweak to voicemail to not light up on saved message counts

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8133 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 e277d9b5
......@@ -1429,7 +1429,7 @@ default:
if (switch_event_create(&event, SWITCH_EVENT_MESSAGE_WAITING) == SWITCH_STATUS_SUCCESS) {
char *mwi_id;
const char *yn = "no";
if (total_new_messages || total_saved_messages || total_new_urgent_messages || total_saved_urgent_messages) {
if (total_new_messages || total_new_urgent_messages ) {
yn = "yes";
}
mwi_id = switch_mprintf("%s@%s", myid, domain_name);
......@@ -1940,7 +1940,7 @@ greet:
if (switch_event_create(&event, SWITCH_EVENT_MESSAGE_WAITING) == SWITCH_STATUS_SUCCESS) {
const char *yn = "no";
if (total_new_messages || total_saved_messages || total_new_urgent_messages || total_saved_urgent_messages) {
if (total_new_messages || total_new_urgent_messages) {
yn = "yes";
}
mwi_id = switch_mprintf("%s@%s", id, domain_name);
......@@ -2187,7 +2187,7 @@ static void message_query_handler(switch_event_t *event)
if (total_new_messages || total_saved_messages) {
if (switch_event_create(&new_event, SWITCH_EVENT_MESSAGE_WAITING) == SWITCH_STATUS_SUCCESS) {
const char *yn = "no";
if (total_new_messages || total_saved_messages || total_new_urgent_messages || total_saved_urgent_messages) {
if (total_new_messages || total_new_urgent_messages ) {
yn = "yes";
}
switch_event_add_header(new_event, SWITCH_STACK_BOTTOM, "MWI-Messages-Waiting", "%s", yn);
......
......@@ -1334,7 +1334,7 @@ SWITCH_MODULE_RUNTIME_FUNCTION(mod_event_socket_runtime)
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Socket up listening on %s:%u\n", prefs.ip, prefs.port);
break;
sock_fail:
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Socket Error!\n");
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Socket Error! Could not listen on %s:%u\n", prefs.ip, prefs.port);
switch_yield(100000);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论