[asterisk-commits] russell: branch russell/events r81125 - /team/russell/events/apps/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Aug 27 16:22:59 CDT 2007
Author: russell
Date: Mon Aug 27 16:22:59 2007
New Revision: 81125
URL: http://svn.digium.com/view/asterisk?view=rev&rev=81125
Log:
restore app_voicemail to trunk version
Modified:
team/russell/events/apps/app_voicemail.c
Modified: team/russell/events/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/team/russell/events/apps/app_voicemail.c?view=diff&rev=81125&r1=81124&r2=81125
==============================================================================
--- team/russell/events/apps/app_voicemail.c (original)
+++ team/russell/events/apps/app_voicemail.c Mon Aug 27 16:22:59 2007
@@ -4149,6 +4149,7 @@
queue_mwi_event(ext_context, newmsgs, oldmsgs);
+ manager_event(EVENT_FLAG_CALL, "MessageWaiting", "Mailbox: %s@%s\r\nWaiting: %d\r\nNew: %d\r\nOld: %d\r\n", vmu->mailbox, vmu->context, ast_app_has_voicemail(ext_context, NULL), newmsgs, oldmsgs);
run_externnotify(vmu->context, vmu->mailbox);
return 0;
}
@@ -7305,6 +7306,7 @@
if (valid) {
int new = 0, old = 0;
snprintf(ext_context, sizeof(ext_context), "%s@%s", vms.username, vmu->context);
+ manager_event(EVENT_FLAG_CALL, "MessageWaiting", "Mailbox: %s\r\nWaiting: %d\r\n", ext_context, has_voicemail(ext_context, NULL));
run_externnotify(vmu->context, vmu->mailbox);
ast_app_inboxcount(ext_context, &new, &old);
queue_mwi_event(ext_context, new, old);
More information about the asterisk-commits
mailing list