Hi,<br><br>I'm banging my head on this :<br><br>chmod +x /etc/asterisk/mysendmail.sh<br>cat /etc/asterisk/mysendmail.sh<br>#!/bin/sh<br><br>logger "Entering $0 with arguments $*"<br>logger $(whoami)<br>exit 0<br>
<br>cd /usr/sbin<br>ln -s /etc/asterisk/mysendmail.sh sendmail<br><br>tail /etc/asterisk/voicemail.conf<br>...<br>attach=yes<br>...<br>[default]<br>7790 => 1234,FooBar,<a href="mailto:foo@example.com">foo@example.com</a><br>
<br><br>Whenever a voicemail is received, I can see in /var/log/syslog:<br>Apr 26 13:59:00 foo-dev logger: Entering /usr/sbin/sendmail with arguments -t<br>Apr 26 13:59:00 foo-dev logger: asterisk<br><br><br>My understanding is that asterisk should have passed at least 2 values to /usr/sbin/sendmail :<br>
- one naming email's recipient (here <a href="mailto:foo@example.com">foo@example.com</a>)<br>- one naming the attached file<br><br>So I think I should have seen something like :<br>Entering /usr/sbin/sendmail with arguments -t <a href="mailto:foo@example.com">foo@example.com</a> -a msg001.WAV<br>
<br>Is this correct or am I missing something obvious ?<br><br>Regards<br>