jonas kellens
2009-May-08 08:32 UTC
[asterisk-users] Not receiving voicemail message in mailbox
It should be as simple as editing voicemail.conf : ; Voicemail Configuration ; [general] ; Formats for writing Voicemail. Note that when using IMAP storage for ; voicemail, only the first format specified will be used. format=wav49|wav|gsm ; Who the e-mail notification should appear to come from serveremail=asterisk-voicemail ; Should the email contain the voicemail as an attachment attach=yes ; Maximum length of a voicemail message in seconds maxmessage=180 ; Minimum length of a voicemail message in seconds for the message to be kept ; The default is no minimum. minmessage=2 ; How many milliseconds to skip forward/back when rew/ff in message playback ; * during msg playback: Rewind ; # during msg playback: Fastforward skipms=3000 ; How many seconds of silence before we end the recording maxsilence=10 ; Silence threshold (what we consider silence: the lower, the more sensitive) silencethreshold=128 ; Max number of failed login attempts maxlogins=3 ; Opmaak e-mail die moet verstuurd worden : emailsubject=Nieuw voicemailbericht in mailbox ${VM_MAILBOX} ! ;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 $ {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 edankt!\n\n\t\t\t\t--Asterisk--\n ; Set the date format on outgoing mails. ; 24h date format emaildateformat=%A, %d %B %Y at %H:%M:%S ; Attach messages to e-mail notifications? attach = yes ; Context to call back from callback=from-voicemail [zonemessages] belgie=Europe/Brussels|'vm-received' Q 'digits/at' R [voicemail-context] ; Syntax for new entries looks like this: ; MailboxNumber => password,name,e-mail,pager,options 50 => 4569,Jonas Kellens,jonas.kellens at thecomputerstore.be,,tz=belgie| attach=yes But I do not receive an e-mail after having left a voicemail message on the voicemailbox 50. What mail-server does Asterisk uses to send his mail ??? Sendmail is not active on my CentOS-box. I have msmtp + mutt to send me weekly the logfiles. Could it be that ?? Greetingz, Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090508/05389563/attachment.htm
Dave Walker
2009-May-08 20:35 UTC
[asterisk-users] Not receiving voicemail message in mailbox
<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>
Erik de Wild: Tripple-o
2009-May-17 17:28 UTC
[asterisk-users] Not receiving voicemail message in mailbox
I have it up and running o my system with this line in voicemail.conf and a symlink named sendmail to the actual msmtp program. mailcmd=/usr/sbin/sendmail -v -t -f l<my e-ail name>@gmail.com This is the install log based on info provided by others and the install process itself. Hope it is useful /Erik >>>>>>> Step 1 Installing needed packages/libs on your system install this packages (I'm not sure if all the packages are needed but with this packages it works) apt-get install libwww-perl apt-get install openssl apt-get install libcrypt-ssleay apt-get install libnet-ssleay-perl apt-get install libcrypt-ssleay-perl Step 2 download msmtp download msmtp van sourceforge (http://sourceforge.net/projects/ msmtp/) to /usr/src/ Step 3 bunzip2 msmtp.tar.bz2 tar -xvf msmtp.tar cd /usr/src/msmtp Step 4 built msmtp ./configure make make install Step 5 check if msmtp is on the system and if the output looks like below. # msmtp --version msmtp version 1.4.9 TLS/SSL library: GnuTLS Authentication library: GNU SASL Supported authentication methods: plain cram-md5 digest-md5 gssapi external login IDN support: enabled NLS: enabled, LOCALEDIR is /usr/share/locale System configuration file name: /etc/msmtprc User configuration file name: /root/.msmtprc Copyright (C) 2006 Martin Lambers and others. This is free software. You may redistribute copies of it under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law. Step 6 Make a symlink from /usr/local/bin/msmtp to /usr/sbin/sendmail (the name of the symlink is sendmail) # ln -s /usr/local/bin/msmtp /usr/sbin/sendmail Step 7 Add /root/.msmtprc (be aware of the dot) to the system with only owner read and write permissions and with this lines (adjust to your xxxx at gmail.com account). This way it works for a gmail account defaults logfile /var/log/msmtp.log account default from <xxxxxx>@gmail.com protocol smtp host smtp.gmail.com port 587 user <xxxxxxx>@gmail.com password <password> auth on tls on tls_certcheck on tls_trust_file /root/cert.pem Step 8 certificate file copy the certificate file to the root directory /root/cert.pem copied on system (see attachement) Step 9 configuration of /etc/asterisk/voicemail.conf Add this to /etc/asterisk/voicemail.conf as a replacement of the "mailcmd =" line mailcmd=/usr/sbin/sendmail -v -t -f <your_gemail_name>@gmail.com and uncomment "attach = yes Add a vociemailbox to the system in [default] of voicemail.conf [default] ; Define maximum number of messages per folder for a particular context. ;maxmsg=50 500 => 1234,<name>,<e-mail adress> step 10 adding a test extension to the system Add an extension to /etc/asterisk/extension.conf to test de setup something like exten => 888,1,Answer() exten => 888,n,Voicemail(500) If you call 888 with in internal phone you enter the voicemail routine and a recording will be made. After finishing you will receive an e- mail with the recording as an attachement. And you are done >>>>>>>>>>>> Message: 2 >> Date: Sat, 16 May 2009 21:47:58 +0200 >> From: jonas kellens <jonas.kellens at telenet.be> >> Subject: Re: [asterisk-users] Not receiving voicemail message in >> mailbox >> To: Asterisk Users Mailing List - Non-Commercial Discussion >> <asterisk-users at lists.digium.com> >> Message-ID: <1242503278.3667.4.camel at localhost.localdomain> >> Content-Type: text/plain; charset="us-ascii" >> >> I have put the following in my voicemail.conf-file : >> >> mailcmd=/usr/local/bin/msmtp -d --syslog=on >> >> -d and syslog=on are to debug some information, because I am still >> not >> receiving my voicemail-messages via mail as an attachment ! >> >> I don't know which mailcommand I need to put here to make Asterisk >> use >> msmtp as 'mailing server'. >> >> It is currently not working... The logfile /root/.msmtp.log is not >> mentioning anything. I think this is because Asterisk is really not >> using msmtp to send the message. >> >> Can someone help me figure this out... ? >> >> Jonas.-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090517/1a2673de/attachment.htm