[Freeswitch-users] mod_voicemail always sends empty emails

Benoit Raymond benoit.raymond at amiconcept.com
Mon Jan 21 00:29:04 MSK 2013


In conf/autoload_configs/voicemail.conf.xml, the "template-file" param
points to a valid template file? By default, it uses voicemail.tpl located
in the conf directory.
Another thing you can look is by turning debug (fsctl loglevel debug) and
deposit a message. In the debug output, you have to see "Sending message to
..."

Finally, FS sends email by building an email and store it as a file. It then
"cat" the file and pipe the output against the mailer-app like this (I'm
taking your msmtp mailer):

/bin/cat {email_file} | msmtp -f {vm-mailfrom} {mailer-args} {vm-mailto}

Reading a bit about msmtp shows that it requires the -a. You could try
adding "-a default" in the mailer-args and see if that will work.

Personally, it works just great with sendmail with the following parameters:
    <param name="mailer-app" value="/usr/sbin/sendmail"/>
    <param name="mailer-app-args" value="-t -i"/>

Hope it helps,

Benoit Raymond
AMI Concept Inc.
Business VoIP Solutions / Web Design
Phone: (450) 553-1231
http://www.amiconcept.com

-----Message d'origine-----
De : freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] De la part de Charlie
Orford
Envoyé : 20 janvier 2013 14:51
À : freeswitch-users at lists.freeswitch.org
Objet : Re: [Freeswitch-users] mod_voicemail always sends empty emails

As a follow up:

I installed msmtp and changed the mailer-app param in switch.conf.xml to:

<param name="mailer-app" value="msmtp"/>

Then put the following in /etc/msmtprc:

account default
host mail.domain.com
domain fs.domain.com
syslog on


Now calling an extension and leaving a voicemail doesn't even result in a
blank email being sent. It's as if FS never invokes msmtp. There's nothing
in /var/log/syslog (where msmtp is configured to log to) and no log of a
connection attempt on my mail server.

I've spent all day on this trying to get to the bottom of it but am stumped
:(

Charlie


On 19/01/2013 20:56, Charlie Orford wrote:
> Hi list,
>
> Voice mails get correctly saved in
> /usr/local/freeswitch/storage/voicemail/default/domain.com/extnum/ but 
> the email sent by mod_voicemail always arrives blank with the wav file 
> attachment missing.
>
> To check the problem wasn't mail server related, I setup a simple 
> postfix "Local only" installation on the same host as FS.
>
> Here's the entire contents of a voicemail email sent to postfix by FS
> (note: domain.com
> is substituted for real domain):
>
> # cat /var/mail/root
> From voicemail at domain.com  Sat Jan 19 17:38:03 2013
> Return-Path: <voicemail at domain.com>
> X-Original-To: postmaster at fs.domain.com
> Delivered-To: postmaster at fs.domain.com
> Received: by fs (Postfix, from userid 1001)
>         id 9E6AC23E57; Sat, 19 Jan 2013 17:38:03 +0000 (UTC)
> Message-Id: <20130119183349.9E6AC23E57 at fs>
> Date: Sat, 19 Jan 2013 18:33:49 +0000 (UTC)
> From: voicemail at angloeuropean.com
> To: undisclosed-recipients:;
>
>
>
> And here are the voicemail specific config params for the extension:
>
> <param name="vm-password" value="1234"/> <param name="vm-attach-file" 
> value="true"/> <param name="vm-mailto" 
> value="postmaster at fs.domain.com"/>
> <param name="vm-mailfrom" value="voicemail at domain.com"/> <param 
> name="vm-email-all-messages" value="true"/> <param 
> name="vm-message-ext" value="wav"/> <param 
> name="vm-keep-local-after-email" value="true"/>
>
>
> /usr/local/freeswitch/conf/voicemail.tpl exists and looks correct 
> (contents here: http://pastebin.com/Tr4fvyht )
>
> I took a log (via fsi_cli and /log 7) of a call leaving a voicemail to 
> that extension (here: http://pastebin.com/B1zteGV7 ) but nothing jumps 
> out.
>
> Is there anything else I can do to track down what's causing this?
>
> I'm running the latest stable branch on Debian squeeze: FreeSWITCH 
> Version 1.2.5.3+git~20121229T001759Z~e04eab7902 (git e04eab7
> 2012-12-29 00:17:59Z)
>
> Thanks,
> Charlie
>
>
>
>
>
>
>
>
>


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list