Re: [asterisk-users] Not receiving voicemail message in mailbox

2009-05-17 Thread Erik de Wild: Tripple-o


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@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 x...@gmail.com 
 account).  This way it works for a gmail account


defaults
logfile /var/log/msmtp.log

account default
from @gmail.com
protocol smtp
host smtp.gmail.com
port 587
user @gmail.com
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 @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,,

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 
Subject: Re: [asterisk-users] Not receiving voicemail message in
mailbox
To: Asterisk Users Mailing List - Non-Commercial Discussion

Message-ID: <1242503278.3667.4.ca...@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.
___
-- 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

Re: [asterisk-users] Not receiving voicemail message in mailbox

2009-05-16 Thread jonas kellens
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.

On Sun, 2009-05-10 at 13:32 -0600, Brandon B. wrote:

> mutt will not deliver a email message, so you are using the wrong
> command. The email message with attachment is created by Asterisk and
> needs msmtp to deliver the message.
> 
> On Sun, May 10, 2009 at 9:10 AM, jonas kellens  
> wrote:
> > Dave,
> >
> > can you help me with my configuration of mutt (MUA) + msmtp (MTA) ?
> >
> > I have included the following in my voicemail.conf :
> >
> > mailcmd=/usr/sbin/mutt
> >
> > But how will Asterisk know how to use Mutt to attach its voicemail-message
> > (.wav-file) ???
> >
> > I use Mutt together with msmtp to send me weekly the Asterisk-log files. I
> > put the commands in my crontab-file.
> >
> > Attachment is possible with "mutt -a attachment"
> >
> > How does Asterisk know to use the -a option ???
> >
> > Thanks for he help !
> >
> > Jonas.
___
-- 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

Re: [asterisk-users] Not receiving voicemail message in mailbox

2009-05-10 Thread Brandon B.
mutt will not deliver a email message, so you are using the wrong
command. The email message with attachment is created by Asterisk and
needs msmtp to deliver the message.

On Sun, May 10, 2009 at 9:10 AM, jonas kellens  wrote:
> Dave,
>
> can you help me with my configuration of mutt (MUA) + msmtp (MTA) ?
>
> I have included the following in my voicemail.conf :
>
> mailcmd=/usr/sbin/mutt
>
> But how will Asterisk know how to use Mutt to attach its voicemail-message
> (.wav-file) ???
>
> I use Mutt together with msmtp to send me weekly the Asterisk-log files. I
> put the commands in my crontab-file.
>
> Attachment is possible with "mutt -a attachment"
>
> How does Asterisk know to use the -a option ???
>
> Thanks for he help !
>
> Jonas.
>
>
>
> On Fri, 2009-05-08 at 13:35 -0700, Dave Walker wrote:
>
> http://www.voip-info.org/wiki/view/Asterisk+config+voicemail.conf
>
> 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 Exim which many people find easier to configure.
> Examples
>
>  ; - you will need to escape any < or > characters with a \
>  mailcmd=/usr/sbin/sendmail -v -t -f asterisk-...@yourdomain.com   ; use -f to prevent r...@localhost.localdomain or similar
>  mailcmd=/usr/exim/bin/exim -t
>  ; - use the next line for testing
>  mailcmd=cat \> /tmp/astvm-mail
>
>
>
> ___
> -- 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
>

___
-- 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


Re: [asterisk-users] Not receiving voicemail message in mailbox

2009-05-10 Thread jonas kellens
Dave,

can you help me with my configuration of mutt (MUA) + msmtp (MTA) ?

I have included the following in my voicemail.conf :

mailcmd=/usr/sbin/mutt

But how will Asterisk know how to use Mutt to attach its
voicemail-message (.wav-file) ???

I use Mutt together with msmtp to send me weekly the Asterisk-log files.
I put the commands in my crontab-file.

Attachment is possible with "mutt -a attachment"

How does Asterisk know to use the -a option ???

Thanks for he help !

Jonas.



On Fri, 2009-05-08 at 13:35 -0700, Dave Walker wrote:

> 
> http://www.voip-info.org/wiki/view/Asterisk+config+voicemail.conf
> 
> 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 Exim
> which many people find easier to configure. Examples 
> 
>  ; - you will need to escape any < or > characters with a \
>  mailcmd=/usr/sbin/sendmail -v -t -f asterisk-...@yourdomain.com   ; use -f 
> to prevent r...@localhost.localdomain or similar
>  mailcmd=/usr/exim/bin/exim -t
>  ; - use the next line for testing
>  mailcmd=cat \> /tmp/astvm-mail
> 
>  
___
-- 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

Re: [asterisk-users] Not receiving voicemail message in mailbox

2009-05-08 Thread Dave Walker
http://www.voip-info.org/wiki/view/Asterisk+config+voicemail.confmailcmd
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 Exim which many people find easier to configure. Examples

 ; - you will need to escape any < or > characters with a \
 mailcmd=/usr/sbin/sendmail -v -t -f asterisk-...@yourdomain.com   ; use -f to prevent r...@localhost.localdomain or similar
 mailcmd=/usr/exim/bin/exim -t
 ; - use the next line for testing
 mailcmd=cat \> /tmp/astvm-mail

 


 Original Message 
Subject: [asterisk-users] Not receiving voicemail message in mailbox
From: jonas kellens 
Date: Fri, May 08, 2009 1:32 am
To: Asterisk Mailing 

   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.kell...@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.   ___
-- 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



___
-- 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