diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-04-02 01:08:55 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-04-02 01:08:55 +0000 |
commit | 716e3504b7634fe616dc325902cb3f3486cbc080 (patch) | |
tree | 3ec22b49acbde0fb2f94a7cbaff6c3ca0e0bc9d5 /apps | |
parent | 004a141c9374f66fc060576d0b3252879147e572 (diff) |
add VM_MESSAGEFILE channel variable to hold path to message left by caller (bug #3926, plus doc update)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5357 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_voicemail.c | 4 |
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+"); |