Olivier
2010-Apr-26 12:22 UTC
[asterisk-users] 1.6.1.18 : app_voicemail is calling sendmail without any argument
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
Tilghman Lesher
2010-Apr-26 13:12 UTC
[asterisk-users] 1.6.1.18 : app_voicemail is calling sendmail without any argument
On Monday 26 April 2010 07:22:33 Olivier wrote:> 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 ?Your understanding is incorrect. The voicemail application encodes the entire email message and invokes sendmail to send the message. There is no re-encoding expected from the sendmail app. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org
Seemingly Similar Threads
- ODBC Voicemail storage
- Asterisk error - 1.6.2 SVN - voicemail files "corrupted"
- Howto disable adsi in app_voicemail.c so I can noload *adsi*.so
- app_voicemail for spanish
- app_voicemail.c still looking for config file even I try to configure the voicemail from database.