aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-09-04 04:13:21 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-09-04 04:13:21 +0000
commit7324165e04b88bb4371f533d82c75fc8c331c551 (patch)
tree8bd3e462b27eb0792ce9fe347ca6bd07fd1852a0
parentc9870f231d9f011645b1f61055a6a7c21d4f0953 (diff)
Send message waiting event on forward (bug #213)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1471 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xapps/app_voicemail2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_voicemail2.c b/apps/app_voicemail2.c
index 1de57f60c..9e00869b4 100755
--- a/apps/app_voicemail2.c
+++ b/apps/app_voicemail2.c
@@ -1842,6 +1842,8 @@ forward_message(struct ast_channel *chan, char *context, char *dir, int curmsg,
ast_destroy(mif); /* or here */
}
+ /* Leave voicemail for someone */
+ manager_event(EVENT_FLAG_CALL, "MessageWaiting", "Mailbox: %s\r\nWaiting: %d\r\n", username, ast_app_has_voicemail(username));
/* give confirmatopm that the message was saved */
res = play_and_wait(chan, "vm-message");