[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 16:45:43 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 16:45 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0091064) urzedo (reporter) - 2008-08-04 16:45
 http://bugs.digium.com/view.php?id=13227#c91064 
---------------------------------------------------------------------- 
Hi all!

mvanbaak, when we were running Asterisk as a non-root user, there were no
messages in the mail log. When using root, the logs were there. Looks like
Asterisk does not send messages at all, when running as a non-root user.
When sending mails from command line, both users generate entries in the
mail log file.

Corydon76, the heneral section of my voicemail.conf is attached. Please
find bellow some information from my linux box (the non-root user is
asterisk_user):

[root at lv19 asterisk]# ls -l /usr/sbin/sendmail
lrwxrwxrwx  1 root root 21 Jul 14 16:32 /usr/sbin/sendmail ->
/usr/sbin/sendmail.postfix

[root at lv19 asterisk]# ls -l /usr/sbin/sendmail.postfix
-rwxr-xr-x  1 root root 157424 Apr  9 14:30 /usr/sbin/sendmail.postfix

[root at lv19 asterisk]# groups asterisk_user
asterisk_user : asterisk_user root tty uucp


We were under some pressure from our client and then we changed the file
app_voicemail.c in order not to use the variable "myumask". Now, Asterisk
can send the message alerts when running as a non-root user. However, it is
not able to delete the messages already sent from /tmp folder.

Please let me know what do you think about this issue. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-04 16:45 urzedo         Note Added: 0091064                          
======================================================================




More information about the asterisk-bugs mailing list