On Sat, Mar 12, 2005 at 01:03:00PM +0300, Julius Kidubuka wrote:
> Hi,
> 
> Where can I find the code that performs the voice e-mail function (that
> is, the code that reads the contents of voicemail.conf and then performs
> the necessary action)?
> 
> I am using [EMAIL PROTECTED] 0.6.

The mail is delivered by piping it to a "sendmail" program (by default 
/usr/sbin/sendmail). /usr/sbin/sendmail does not have to be sendmail.
Postfix and Exim provide a sendmail-compatible interface along with a
host of more minimal programs such as ssmtp and nullmailer.

With sendmail and similar (Exim and Postfix) the aliases (normally 
/etc/aliases) file is a useful place to set up forwarding. e.g: suppose 
you want to keep your voicemail.conf as simple as possible:

[default]
#vmbox=pass,name,recipients
200=200,,[EMAIL PROTECTED]
201=201,,[EMAIL PROTECTED]
202=202,,[EMAIL PROTECTED]
202=202,,[EMAIL PROTECTED]
203=203,,[EMAIL PROTECTED]
204=204,,[EMAIL PROTECTED]

to your aliases file you could then add:

200: john
201: [EMAIL PROTECTED]
202: david,|/usr/local/bin/send_sms_to_david

Note that I have ommited the names, but those names are actually also 
used for things other than voicemail.

-- 
Tzafrir Cohen         | New signature for new address and  |  VIM is
http://tzafrir.org.il | new homepage                       | a Mutt's  
[EMAIL PROTECTED] |                                    |  best
ICQ# 16849755         | Space reserved for other protocols | friend
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to