[Asterisk-cvs] asterisk/apps app_voicemail.c,1.204,1.205

kpfleming at lists.digium.com kpfleming at lists.digium.com
Fri Apr 1 19:15:35 CST 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv3635/apps

Modified Files:
	app_voicemail.c 
Log Message:
add VM_MESSAGEFILE channel variable to hold path to message left by caller (bug #3926, plus doc update)


Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.204
retrieving revision 1.205
diff -u -d -r1.204 -r1.205
--- app_voicemail.c	27 Mar 2005 22:13:20 -0000	1.204
+++ app_voicemail.c	2 Apr 2005 01:08:55 -0000	1.205
@@ -2139,6 +2139,10 @@
 				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+");




More information about the svn-commits mailing list