[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,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
Re: [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 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 ? 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 -- _ -- 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