Voice-mail messages aren't sent to e-mail address. I have two Asterisk servers, first one is upgraded from 1.0.RC2 to 1.0.9, and second one is from 1.0.7 to 1.0.9. Both Asterisk have EXACTLY same "voicemail.conf" configuration, but second Asterisk don't sending voice mail messages through e-mail! I'm using almost default "voicemail.conf" with just one mailbox addedd: 1234 => 1234,MyName,MyMail@MyDomain.com Why second Asterisk don't sending e-mails? I tested nail program, and I can send any mail without problems. How Asterisk sending mail, through some other program (nail, mail) or by itself?
Moises Silva
2006-Jan-06 18:25 UTC
[Asterisk-Users] Voice mail messages aren't sent to e-mail
In 1.2.1 The mail is sent, according to app_voicemail.c, with: /* Default mail command to mail voicemail. Change it with the mailcmd= command in voicemail.conf */ #define SENDMAIL "/usr/sbin/sendmail -t" as it says, you can change the behaviour through "mailcmd" parameter in voicemail.conf basically asterisk creates all the headers and stuff writing to file /tmp/astmail-XXXXXX where XXXXXX is a random string. If you want to see really what asterisk is trying to send, just go to app_voicemail.c and change in line 1008: snprintf(tmp2, sizeof(tmp2), "( %s < %s ; rm -f %s ) &", mailcmd, tmp, tmp); for this: snprintf(tmp2, sizeof(tmp2), "( %s < %s ; ) &", mailcmd, tmp); so the temporary file wont be deleted, go to /tmp/ and see whats trying to send. You can even issue: /usr/sbin/sendmail -t < /tmp/astmail-blah Best Regards On 1/6/06, Pisac <pisacc@gmail.com> wrote:> Voice-mail messages aren't sent to e-mail address. > > I have two Asterisk servers, first one is upgraded from 1.0.RC2 to > 1.0.9, and second one is from 1.0.7 to 1.0.9. Both Asterisk have EXACTLY > same "voicemail.conf" configuration, but second Asterisk don't sending > voice mail messages through e-mail! > > I'm using almost default "voicemail.conf" with just one mailbox addedd: > 1234 => 1234,MyName,MyMail@MyDomain.com > > Why second Asterisk don't sending e-mails? I tested nail program, and I > can send any mail without problems. > > How Asterisk sending mail, through some other program (nail, mail) or by > itself? > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- "Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"
James Armstrong
2006-Jan-06 19:22 UTC
[Asterisk-Users] Voice mail messages aren't sent to e-mail
I had a similar problem, but I was able to see the message getting rejected to rr.com because they were looking up the hostname pbx.... and rejecting it. I changed the mailcmd to add a -f realhostname.com and it started working. - James On Jan 6, 2006, at 4:24 PM, Pisac wrote:> Voice-mail messages aren't sent to e-mail address. > > I have two Asterisk servers, first one is upgraded from 1.0.RC2 to > 1.0.9, and second one is from 1.0.7 to 1.0.9. Both Asterisk have > EXACTLY > same "voicemail.conf" configuration, but second Asterisk don't sending > voice mail messages through e-mail! > > I'm using almost default "voicemail.conf" with just one mailbox > addedd: > 1234 => 1234,MyName,MyMail@MyDomain.com > > Why second Asterisk don't sending e-mails? I tested nail program, > and I > can send any mail without problems. > > How Asterisk sending mail, through some other program (nail, mail) > or by > itself? > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users