Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Which command line is used to send emails t


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
oza-4h07 at myamail.com
Guest





PostPosted: Fri Mar 21, 2008 5:38 am    Post subject: [asterisk-users] Which command line is used to send emails t Reply with quote

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
Back to top
robl at linx.net
Guest





PostPosted: Sat Mar 22, 2008 2:40 pm    Post subject: [asterisk-users] Which command line is used to send emails t Reply with quote

On Fri, Mar 21, 2008 at 12:21:09PM +0100, Olivier wrote:
Quote:
Quote:
In Asterisk full log, I can see
Mar 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.

According to the exim docs (if I understand correctly) the message ID used
is derived from the incoming header:

Message-Id: <>

So, I assume that whatever is submitting the messages to exim is also adding
this Message-Id: header line.

If there is no message ID, then exim uses its internal message ID, but
doesn't appear to log an "id=" line.

You could write a wrapper script for your incoming faxes that uses some sort
of date/time+username combination using existing variables available in
asterisk (maybe ${EPOCH} + ${UNIQUEID} + the recipient would do) or
something from the shell script to call the file name.)

R.
--
Robert Lister - London Internet Exchange - http://www.linx.net/
sip:robl at linx.net - inoc-dba:5459*710 - tel: +44 (0)20 7645 3510
Back to top
oza-4h07 at myamail.com
Guest





PostPosted: Sun Mar 23, 2008 5:07 pm    Post subject: [asterisk-users] Which command line is used to send emails t Reply with quote

2008/3/22, Robert Lister <robl at linx.net>:
Quote:

On Fri, Mar 21, 2008 at 12:21:09PM +0100, Olivier wrote:
Quote:
Quote:
In Asterisk full log, I can see
Mar 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
Quote:
log lines with this id field.

According to the exim docs (if I understand correctly) the message ID used
is derived from the incoming header:

Message-Id: <>

So, I assume that whatever is submitting the messages to exim is also
adding
this Message-Id: header line.

If there is no message ID, then exim uses its internal message ID, but
doesn't appear to log an "id=" line.
Yes, you're right.
Voicemails are sent with "sendmail < voicemailfile" commands.
The trick is find how to build such files.

I'll try to find how to buil those and report.

You could write a wrapper script for your incoming faxes that uses some sort
Quote:
of date/time+username combination using existing variables available in
asterisk (maybe ${EPOCH} + ${UNIQUEID} + the recipient would do) or
something from the shell script to call the file name.)

R.


--
Robert Lister - London Internet Exchange - http://www.linx.net/
sip:robl at linx.net - inoc-dba:5459*710 - tel: +44 (0)20 7645 3510

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080323/cae84aca/attachment.htm
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services