]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
add VM_MESSAGEFILE channel variable to hold path to message left by caller (bug ...
authorKevin P. Fleming <kpfleming@digium.com>
Sat, 2 Apr 2005 01:08:55 +0000 (01:08 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Sat, 2 Apr 2005 01:08:55 +0000 (01:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5357 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c
doc/README.variables

index b1321a160a4679367af35e57359f2232d9fc4d2f..3fa8b2f409181a0fe6baf300e463a281dad11f73 100755 (executable)
@@ -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+");
index 83d3011dd33e37e248af2a88de052babe7fafca9..3d438f8c3f8b8c1270d744b39221f807c85bd2a3 100755 (executable)
@@ -357,18 +357,19 @@ ${MEETME_EXIT_CONTEXT}            Context for exit out of meetme meeting
 ${MEETME_AGI_BACKGROUND}       AGI script for Meetme (zap only)
 ${MEETMESECS}                  * Number of seconds a user participated in a MeetMe conference
 
-The voicemail() application uses the following variables:
+The VoiceMail() application uses the following variables:
 ---------------------------------------------------------
-${VM_CATEGORY} Sets voicemail category
-${VM_NAME}     * Full name in voicemail
-${VM_DUR}      * Voicemail duration
-${VM_MSGNUM}   * Number of voicemail message in mailbox
-${VM_CALLERID} * Voicemail Caller ID (Person leaving vm)
-${VM_CIDNAME}  * Voicemail Caller ID Name
-${VM_CIDNUM}   * Voicemail Caller ID Number
-${VM_DATE}     * Voicemail Date
-
-The vmauthenticate() application uses the following variables:
+${VM_CATEGORY}         Sets voicemail category
+${VM_NAME}             * Full name in voicemail
+${VM_DUR}              * Voicemail duration
+${VM_MSGNUM}           * Number of voicemail message in mailbox
+${VM_CALLERID}         * Voicemail Caller ID (Person leaving vm)
+${VM_CIDNAME}          * Voicemail Caller ID Name
+${VM_CIDNUM}           * Voicemail Caller ID Number
+${VM_DATE}             * Voicemail Date
+${VM_MESSAGEFILE}      * Path to message left by caller
+
+The VMAuthenticate() application uses the following variables:
 ---------------------------------------------------------
 ${AUTH_MAILBOX}        * Authenticated mailbox
 ${AUTH_CONTEXT}        * Authenticated mailbox context