summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-04-02 01:08:55 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-04-02 01:08:55 +0000
commit4597c9a9e8345dabd64b8dc64dda43e5cfe0ff72 (patch)
tree3ec22b49acbde0fb2f94a7cbaff6c3ca0e0bc9d5 /apps
parent6ac2bb1e881e597af613daef00c283add5260771 (diff)
add VM_MESSAGEFILE channel variable to hold path to message left by caller (bug #3926, plus doc update)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_voicemail.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index b1321a160..3fa8b2f40 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -2139,6 +2139,10 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int
msgnum++;
} while (msgnum < MAXMSG);
if (msgnum < MAXMSG) {
+
+ /* assign a variable with the name of the voicemail file */
+ pbx_builtin_setvar_helper(chan, "VM_MESSAGEFILE", fn);
+
/* Store information */
snprintf(txtfile, sizeof(txtfile), "%s.txt", fn);
txt = fopen(txtfile, "w+");