Gordon Henderson wrote:
> 
> Yes.
> 
> in app_voicemail.c, you've already found the #define, but you might also
> want to add:
> 
>                 fchmod (txtdes, 0660) ;
> 
> after line 2615.
> 
> ie. before the comment line:
> 
>                   /* Now play the beep once we have the message number
> for our next message. */
> 
> You also need to edit app.c: round about line 600, change:
> 
>     others[x] = ast_writefile(recordfile, sfmt[x], comment, O_TRUNC, 0,
> 0700);
> 
> into:
> 
>     others[x] = ast_writefile(recordfile, sfmt[x], comment, O_TRUNC, 0,
> 0660);
> 
> Enjoy!
> 
I did that but it did not solve my issue. The patch agains 1.2.18 that i ended
up doing is attached to this mail.

The permissions now are:

-rw-------  1 asterisk web-aster   9096 Apr 26 17:32 msg0012.WAV
-rw-------  1 asterisk web-aster   9207 Apr 26 17:32 msg0012.gsm
-rw-rw----  1 asterisk web-aster    274 Apr 26 17:32 msg0012.txt
-rw-------  1 asterisk web-aster  89324 Apr 26 17:32 msg0012.wav

So, it is getting somewhere but it is not all fixed.

-- 
Gustavo Felisberto
(HumpBack)
Web: http://dev.gentoo.org/~humpback
Blog: http://blog.felisberto.net/
------------
It's most certainly GNU/Linux, not Linux. Read more at
http://www.gnu.org/gnu/why-gnu-linux.html .
-------------
--- /var/tmp/portage/net-misc/asterisk-1.2.18/work/asterisk-1.2.18/app.c	2007-04-03 17:58:19 +0000
+++ app.c	2007-04-26 16:44:13 +0000
@@ -594,7 +594,7 @@
 	time(&start);
 	end=start;  /* pre-initialize end to be same as start in case we never get into loop */
 	for (x=0;x<fmtcnt;x++) {
-		others[x] = ast_writefile(recordfile, sfmt[x], comment, O_TRUNC, 0, 0700);
+		others[x] = ast_writefile(recordfile, sfmt[x], comment, O_TRUNC, 0, 0660);
 		ast_verbose( VERBOSE_PREFIX_3 "x=%d, open writing:  %s format: %s, %p\n", x, recordfile, sfmt[x], others[x]);
 
 		if (!others[x]) {
--- /var/tmp/portage/net-misc/asterisk-1.2.18/work/asterisk-1.2.18/apps/app_voicemail.c	2007-04-05 16:09:41 +0000
+++ app_voicemail.c	2007-04-26 16:42:47 +0000
@@ -75,8 +75,8 @@
 #endif
 
 #define COMMAND_TIMEOUT 5000
-#define	VOICEMAIL_DIR_MODE	0700
-#define	VOICEMAIL_FILE_MODE	0600
+#define	VOICEMAIL_DIR_MODE	0770
+#define	VOICEMAIL_FILE_MODE	0660
 #define	CHUNKSIZE	65536
 
 #define VOICEMAIL_CONFIG "voicemail.conf"
@@ -2613,7 +2613,7 @@
 			pbx_builtin_setvar_helper(chan, "VMSTATUS", "FAILED");
 			goto leave_vm_out;
 		}
-
+                fchmod(txtdes, 0660);
 		/* Now play the beep once we have the message number for our next message. */
 		if (res >= 0) {
 			/* Unless we're *really* silent, try to send the beep */

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to