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,f...@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 f...@example.com)
- one naming the attached file

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

Is this correct or am I missing something obvious ?

Regards
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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

Reply via email to