<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><br><a href="http://www.voip-info.org/wiki/view/Asterisk+config+voicemail.conf">http://www.voip-info.org/wiki/view/Asterisk+config+voicemail.conf</a><br><br>mailcmd
Mailcmd allows the administrator to override the default mailer
command with a defined command. Mailcmd takes a string value set to the
desired command line to execute when a user needs to be notified of a
voice mail message. The default command line is: '/usr/sbin/sendmail
-t'. A useful alternative to sendmail is <a onclick="javascript: pageTracker._trackPageview('/outgoing/wikipages/www.exim.org/' );" href="http://www.exim.org/" class="external">Exim</a> which many people find easier to configure. Examples
<br>
<br><font style="font-family: monospace;" face="monospace"> ; - you will need to escape any < or > characters with a \
</font><br><font style="font-family: monospace;" face="monospace"> mailcmd=/usr/sbin/sendmail -v -t -f asterisk-pbx@yourdomain.com ; use -f to prevent root@localhost.localdomain or similar
</font><br><font style="font-family: monospace;" face="monospace"> mailcmd=/usr/exim/bin/exim -t
</font><br><font style="font-family: monospace;" face="monospace"> ; - use the next line for testing
</font><br><font style="font-family: monospace;" face="monospace"> mailcmd=cat \> /tmp/astvm-mail
</font><br>
<br> <br><br>
<blockquote webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size: 10pt; color: black; font-family: verdana;">
<div >
-------- Original Message --------<br>
Subject: [asterisk-users] Not receiving voicemail message in mailbox<br>
From: jonas kellens <jonas.kellens@telenet.be><br>
Date: Fri, May 08, 2009 1:32 am<br>
To: Asterisk Mailing <asterisk-users@lists.digium.com><br>
<br>
It should be as simple as editing voicemail.conf :<br> <br> <i><font size="2">; Voicemail Configuration</font></i><br> <i><font size="2">;</font></i><br> <i><font size="2">[general]</font></i><br> <i><font size="2">; Formats for writing Voicemail. Note that when using IMAP storage for</font></i><br> <i><font size="2">; voicemail, only the first format specified will be used.</font></i><br> <i><font size="2">format=wav49|wav|gsm</font></i><br> <i><font size="2">; Who the e-mail notification should appear to come from</font></i><br> <b><i><font size="2">serveremail=asterisk-voicemail</font></i></b><br> <i><font size="2">; Should the email contain the voicemail as an attachment</font></i><br> <b><i><font size="2">attach=yes</font></i></b><br> <i><font size="2">; Maximum length of a voicemail message in seconds</font></i><br> <i><font size="2">maxmessage=180</font></i><br> <i><font size="2">; Minimum length of a voicemail message in seconds for the message to be kept</font></i><br> <i><font size="2">; The default is no minimum.</font></i><br> <i><font size="2">minmessage=2</font></i><br> <i><font size="2">; How many milliseconds to skip forward/back when rew/ff in message playback</font></i><br> <i><font size="2">; * during msg playback: Rewind</font></i><br> <i><font size="2">; # during msg playback: Fastforward </font></i><br> <i><font size="2">skipms=3000</font></i><br> <i><font size="2">; How many seconds of silence before we end the recording</font></i><br> <i><font size="2">maxsilence=10</font></i><br> <i><font size="2">; Silence threshold (what we consider silence: the lower, the more sensitive)</font></i><br> <i><font size="2">silencethreshold=128</font></i><br> <i><font size="2">; Max number of failed login attempts</font></i><br> <i><font size="2">maxlogins=3</font></i><br> <i><font size="2">; Opmaak e-mail die moet verstuurd worden :</font></i><br> <b><i><font size="2">emailsubject=Nieuw voicemailbericht in mailbox ${VM_MAILBOX} !</font></i></b><br> <b><i><font size="2">;emailbody=Beste,\n\n\t Er is een nieuw voicemailbericht nagelaten in mailbox ${VM_MAILBOX} op ${VM_DATE}.\n\n\t Dit bericht is ${VM_DUR} lang en komt van $</font></i></b><br> <b><i><font size="2">{VM_CALLERID} (${VM_CIDNUM}). \n\n\t Je kan het bericht beluisteren door te bellen naar '99' of via het bijgevoegde WAV-bestand (${VM_MESSAGEFILE}).\n\n\t B</font></i></b><br> <b><i><font size="2">edankt!\n\n\t\t\t\t--Asterisk--\n</font></i></b><br> <i><font size="2">; Set the date format on outgoing mails.</font></i><br> <i><font size="2">; 24h date format</font></i><br> <i><font size="2">emaildateformat=%A, %d %B %Y at %H:%M:%S</font></i><br> <i><font size="2">; Attach messages to e-mail notifications?</font></i><br> <i><font size="2">attach = yes</font></i><br> <i><font size="2">; Context to call back from </font></i><br> <i><font size="2">callback=from-voicemail</font></i><br> <br> <i><font size="2">[zonemessages]</font></i><br> <i><font size="2">belgie=Europe/Brussels|'vm-received' Q 'digits/at' R</font></i><br> <br> <i><font size="2">[voicemail-context]</font></i><br> <br> <i><font size="2">; Syntax for new entries looks like this:</font></i><br> <i><font size="2">; MailboxNumber => password,name,e-mail,pager,options</font></i><br> <b><i><font size="2">50 => 4569,Jonas Kellens,<a onclick="if(window.location==top.location){Popup.composeWindow('pcompose.php?sendto=jonas.kellens%40thecomputerstore.be');}else{top.Popup.composeWindow('pcompose.php?sendto=jonas.kellens%40thecomputerstore.be');}; return false;" href="mailto:jonas.kellens@thecomputerstore.be" target="_blank" mce_href="mailto:jonas.kellens@thecomputerstore.be">jonas.kellens@thecomputerstore.be</a>,,tz=belgie|attach=yes</font></i></b><br> <br> But I do not receive an e-mail after having left a voicemail message on the voicemailbox 50.<br> <br> What mail-server does Asterisk uses to send his mail ???<br> Sendmail is not active on my CentOS-box. I have msmtp + mutt to send me weekly the logfiles. Could it be that ??<br> <br> Greetingz,<br> Jonas. <hr>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank" mce_href="http://www.api-digital.com">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank" mce_href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</div>
</blockquote></span></body></html>