[asterisk-bugs] [Asterisk 0013227]: Asterisk does not send voicemail alerts when it is being executed as a non-root user

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Aug 4 18:22:04 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13227 
====================================================================== 
Reported By:                urzedo
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13227
Category:                   Applications/app_voicemail
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.21.2 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-03 15:53 CDT
Last Modified:              2008-08-04 18:22 CDT
====================================================================== 
Summary:                    Asterisk does not send voicemail alerts when it is
being executed as a non-root user
Description: 
I have been using Asterisk 1.2.19 for the past two years. We created a
non-root user to execute this Asterisk instance and everything was ok.

Now we upgraded to Asterisk 1.4.21.2 and want to continue using this
non-root user to execute Asterisk. However, we noticed that after the
upgrade no voicemail alerts are generated by Asterisk anymore, when using a
non-root user. If we use root, the emails alerts are sent.

We downgraded this Asterisk instance until we found that Asterisk 1.4.14
is able to send the alerts as a non-root user, but from version 1.4.15 on
we can reproduce the issue.

We are not good C programmers, but found that this issue should be
something related to umask setting (at least in app_voicemail.c).

Please help.
====================================================================== 

---------------------------------------------------------------------- 
 (0091068) Corydon76 (administrator) - 2008-08-04 18:22
 http://bugs.digium.com/view.php?id=13227#c91068 
---------------------------------------------------------------------- 
If the umask is set such that the asterisk_user does not have permission to
read the file (e.g. 0666) or 0600), then that would explain why sendmail is
unable to send the email.  Try setting the umask of the asterisk_user user
to something sane, like 0002. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-04 18:22 Corydon76      Note Added: 0091068                          
======================================================================




More information about the asterisk-bugs mailing list