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
This commit is contained in:
Kevin P. Fleming
2005-04-02 01:08:55 +00:00
parent 6ac2bb1e88
commit 4597c9a9e8
2 changed files with 15 additions and 10 deletions

View File

@@ -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+");