Olivier
2008-Mar-21 10:38 UTC
[asterisk-users] Which command line is used to send emails to notify incoming voicemail ?
Hi, In exim4, I can see lines such as : mainlog.9:2008-03-12 08:53:28 1JZLmC-0000E7-0A <= root at foo.com U=root P=local S=43802 id=Asterisk-0-123413860-4174-2662 at ipbx-bs-60200 In my voicemail.conf, I see : ; If you need to have an external program, i.e. /usr/bin/myapp called when a ;externnotify=/usr/bin/myapp ; If you need to have an external program, i.e. /usr/bin/myapp called when a ;externpass=/usr/bin/myapp So, I guess this line (from app_voicemail.c) is used and somehow Sendmail is used #define SENDMAIL "/usr/sbin/sendmail -t" I want to know which command line is used, in general, to send emails that include this id field so that I could also use this id field when emailing incoming faxes. My question are either : Which debug or log option can I turn on to find out which command Asterisk is exactly sending to Sendmail/Exim4 to notify incoming voicemail ? Which sendmail command line option can I use to include a populated id field in log files ? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080321/e3f6dd46/attachment.htm
Olivier
2008-Mar-21 11:21 UTC
[asterisk-users] Which command line is used to send emails to notify incoming voicemail ?
2008/3/21, Olivier <oza-4h07 at myamail.com>:> > Hi, > > In exim4, I can see lines such as : > mainlog.9:2008-03-12 08:53:28 1JZLmC-0000E7-0A <= root at foo.com U=root > P=local S=43802 id=Asterisk-0-123413860-4174-2662 at ipbx-bs-60200 > > In my voicemail.conf, I see : > ; If you need to have an external program, i.e. /usr/bin/myapp called when > a > ;externnotify=/usr/bin/myapp > ; If you need to have an external program, i.e. /usr/bin/myapp called when > a > ;externpass=/usr/bin/myapp > > > So, I guess this line (from app_voicemail.c) is used and somehow Sendmail > is used > #define SENDMAIL "/usr/sbin/sendmail -t" > > > I want to know which command line is used, in general, to send emails that > include this id field so that I could also use this id field when emailing > incoming faxes. > > My question are either : > > > Which debug or log option can I turn on to find out which command Asterisk is exactly sending to Sendmail/Exim4 to notify incoming voicemail ? > Which sendmail command line option can I use to include a populated id field in log files ? > > > > Regards > > In Asterisk full log, I can seeMar 20 14:36:41 DEBUG[29025] app_voicemail.c: Sent mail to XXX at example.orgwith command '/usr/sbin/sendmail -t' But when I type "/usr/sbin/sendmail XXX at example.org" I can't see the same log lines with this id field. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080321/21d4ce6d/attachment.htm