[asterisk-users] 1.6.1.18 : app_voicemail is calling sendmail without any argument

Olivier oza_4h07 at yahoo.fr
Mon Apr 26 07:22:33 CDT 2010


Hi,

I'm banging my head on this :

chmod +x /etc/asterisk/mysendmail.sh
cat /etc/asterisk/mysendmail.sh
#!/bin/sh

logger "Entering $0 with arguments $*"
logger $(whoami)
exit 0

cd /usr/sbin
ln -s /etc/asterisk/mysendmail.sh sendmail

tail /etc/asterisk/voicemail.conf
...
attach=yes
...
[default]
7790 => 1234,FooBar,foo at example.com


Whenever a voicemail is received, I can see in /var/log/syslog:
Apr 26 13:59:00 foo-dev logger: Entering /usr/sbin/sendmail with arguments
-t
Apr 26 13:59:00 foo-dev logger: asterisk


My understanding is that asterisk should have passed at least 2 values to
/usr/sbin/sendmail :
- one naming email's recipient (here foo at example.com)
- one naming the attached file

So I think I should have seen something like :
Entering /usr/sbin/sendmail with arguments -t foo at example.com -a msg001.WAV

Is this correct or am I missing something obvious ?

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100426/3712c94c/attachment.htm 


More information about the asterisk-users mailing list