diff options
author | Matteo Brancaleoni <mbrancaleoni@espia.it> | 2003-02-24 06:00:18 +0000 |
---|---|---|
committer | Matteo Brancaleoni <mbrancaleoni@espia.it> | 2003-02-24 06:00:18 +0000 |
commit | 7a67a8faa37f118f7e7375059e958cc99e712aeb (patch) | |
tree | 388e986b909e145722de5c909a1496e0402a4ac7 /apps | |
parent | 17769619c2d3d5c96c906a383ec06df2efbb0e35 (diff) |
Mon Feb 24 07:00:01 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@622 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/Makefile | 2 | ||||
-rwxr-xr-x | apps/app_voicemail.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/apps/Makefile b/apps/Makefile index 7a7d93771..48e69c76a 100755 --- a/apps/Makefile +++ b/apps/Makefile @@ -24,7 +24,7 @@ APPS=app_dial.so app_playback.so app_voicemail.so app_directory.so app_intercom. #APPS+=app_sql_postgres.so #APPS+=app_sql_odbc.so -APPS+=$(shell if [ -f /usr/include/zap.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so" ; fi) +APPS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so" ; fi) #APPS+=$(shell if [ -f /usr/include/zap.h ]; then echo "app_rpt.so" ; fi) CFLAGS+= diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 0646b0601..3ea6cff46 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -22,6 +22,7 @@ #include <asterisk/module.h> #include <asterisk/adsi.h> #include <asterisk/app.h> +#include <asterisk/manager.h> #include <stdlib.h> #include <errno.h> #include <unistd.h> @@ -726,6 +727,7 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int ast_log(LOG_WARNING, "No entry in voicemail config file for '%s'\n", ext); ast_destroy(cfg); /* Leave voicemail for someone */ + manager_event(EVENT_FLAG_CALL, "MessageWaiting", "Mailbox: %s\r\nWaiting: %d\r\n", ext, ast_app_has_voicemail(ext)); return res; } @@ -1981,6 +1983,9 @@ out2: ast_destroy(cfg); if (useadsi) adsi_unload_session(chan); + if (valid) { + manager_event(EVENT_FLAG_CALL, "MessageWaiting", "Mailbox: %s\r\nWaiting: %d\r\n", username, ast_app_has_voicemail(username)); + } LOCAL_USER_REMOVE(u); return res; |