[asterisk-bugs] [JIRA] (ASTERISK-20939) Not working parameter mailcmd in voicemail.conf unless Asterisk is running as root

Andrew Kolchoogin (JIRA) noreply at issues.asterisk.org
Tue Jan 15 05:41:45 CST 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-20939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=201491#comment-201491 ] 

Andrew Kolchoogin commented on ASTERISK-20939:
----------------------------------------------

Perhaps where's some issues with launching external commands via system(2) syscall on 64-bit platforms: "mailcmd=/some/shell/script" doesn't work if you were either started Asterisk with "-U unprivilegeduser" or user "runuser=unprivilegeduser" in asterisk.conf.

Removing these parameters cures things and might be suggested as a work-around, but some additional investigation is needed.

                
> Not working parameter mailcmd in voicemail.conf unless Asterisk is running as root
> ----------------------------------------------------------------------------------
>
>                 Key: ASTERISK-20939
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20939
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_voicemail
>         Environment: OS - Debian 6.0.3 x86_64
> kernel version - 2.6.32-5-amd64
>            Reporter: Andrew Kolchoogin
>
> voicemail.conf:
> #include vm_general.conf
> #include vm_additional.conf
> vm_general.conf:
> [general]
> emailsubject=New voicemail in mailbox ${VM_MAILBOX} from ${VM_CALLERID}
> format=wav
> mailcmd=/space/scripts/vm_sender.pl
> servermail=asterisk
> vm_additional.conf:
> [default]
> 107=>123,107,test at mail.ru,,attach=yes,envelope=yes,saycid=yes,delete=no
> I'm calling to voice mail of number 107, writing message and after that in debagger i see:
> [Dec 12 15:07:23] DEBUG[16912] app_voicemail.c: Sent mail to test at mail.ru with command '/space/scripts/vm_sender.pl'
> But infact call of script was missing. On 32bit system of Asterisk all working fine)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list