[Freeswitch-users] Send users wav of voicemail via sendmail
covici at ccs.covici.com
covici at ccs.covici.com
Fri Apr 25 07:12:55 MSD 2014
The sound file is in the message which is on standard input, if memory
serves.
Sean Devoy <sdevoy at bizfocused.com> wrote:
> I ran a bash script that dumped the args. They are not just meaningful to sendmail as they contain the FROM and TO email address names. How do I get the sound file name and pass it to the script? I have everything else I need.
>
> I would however have preferred to just have Freeswitch send the email as described in the docs.
>
> From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Russell Treleaven
> Sent: Thursday, April 24, 2014 6:54 PM
> To: FreeSWITCH Users Help
> Subject: Re: [Freeswitch-users] Send users wav of voicemail via sendmail
>
> To be more clear.
>
> you are going to make a bash script that will stunt double for sendmail.
>
> first iteration of the shell script that you will write just logs ">>>>>>>>>>Hey I actually ran"
> This is how you can verify that freeswitch is executing the specified email app.
> then when you know it runs you can pass the args and stdin to sendmail via the shell script.
> The args are only meaningful to sendmail.
> you can also run the bash script manually to make sure it works as expected.
>
> Hope this helps.
>
>
>
> On Thu, Apr 24, 2014 at 5:08 PM, Sean Devoy <sdevoy at bizfocused.com<mailto:sdevoy at bizfocused.com>> wrote:
> OK, what are those args?
>
> From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>] On Behalf Of Russell Treleaven
> Sent: Thursday, April 24, 2014 4:57 PM
>
> To: FreeSWITCH Users Help
> Subject: Re: [Freeswitch-users] Send users wav of voicemail via sendmail
>
> configure to execute a script like the following in switch.conf.xml
> just have the script log the args it receives then make that script call sendmail
> Then should help you debug the problem
>
> <param name="mailer-app" value="/usr/local/freeswitch/scripts/sendemail.py"/>
> <param name="mailer-app-args" value="-i -d -t"/>
>
> On Thu, Apr 24, 2014 at 4:49 PM, Lloyd Aloysius <lloyd.aloysius at gmail.com<mailto:lloyd.aloysius at gmail.com>> wrote:
>
> Did you reload the configuration. May be restart the freeswitch service?
> OS ?
>
>
> On Thu, Apr 24, 2014 at 4:41 PM, Sean Devoy <sdevoy at bizfocused.com<mailto:sdevoy at bizfocused.com>> wrote:
> Thanks for the replies.
> @Jason - yes sendmail works from a shell prompt just fine sending to the same address as the FS test.
> @Lloyd - same answer - it works from shell, but not from freeswitch. It is not the receiving mail server.
>
> There is NOTHING in the debug logs. It is like EMAIL is not a feature that is turned on or configured.
>
> Here is the log from my latest test:
> http://pastebin.freeswitch.org/22446
>
> -----Original Message-----
> From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>] On Behalf Of covici at ccs.covici.com<mailto:covici at ccs.covici.com>
> Sent: Thursday, April 24, 2014 3:20 PM
> To: FreeSWITCH Users Help
> Subject: Re: [Freeswitch-users] Send users wav of voicemail via sendmail
>
> In your logs, you should (at the debug level) see it trying to send or something. I have done this and am using:
> <email>
> <param name="template-file" value="voicemail.tpl"/>
> <param name="notify-template-file" value="notify-voicemail.tpl"/>
> <!-- this is the format voicemail_time will have -->
> <param name="date-fmt" value="%A, %B %d %Y, %I %M %p"/>
> <param name="email-from"
> value="${voicemail_account}@${voicemail_domain}"/>
> </email>
> and in
> switch.conf.xml I have
> <param name="mailer-app" value="sendmail"/>
> <param name="mailer-app-args" value="-t"/>
>
> You need to check those debug logs.
>
> Sean Devoy <sdevoy at bizfocused.com<mailto:sdevoy at bizfocused.com>> wrote:
>
> > I tried
> > <param name="mailer-app" value="/usr/sbin/sendmail" />
> >
> > And then I changed args to:
> > <param name="mailer-app-args" value=""/>
> >
> > Then: service freeswitch restart
> >
> > Still no errors, but no email gets sent.
> >
> >
> > From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>
> > [mailto:freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>] On Behalf Of
> > Abaci
> > Sent: Thursday, April 24, 2014 1:59 PM
> > To: FreeSWITCH Users Help
> > Subject: Re: [Freeswitch-users] Send users wav of voicemail via
> > sendmail
> >
> > try with empty mail-app-args
> >
> >
> >
> > On 4/24/2014 1:44 PM, Sean Devoy wrote:
> > [cid:image001.gif at 01CF5FC9.5B957360]
> > Hi All,
> >
> > Can someone explain (or point to documentation) to get voice mail messages emailed to the end user. I have been over and over the mod_voicemail wiki page at https://wiki.freeswitch.org/wiki/Mod_voicemail. It is a nice reference page as it lists lots and lots of voicemail variables and parameters. However, I cannot determine what the minimum rwquirements are.
> >
> > Here is what I have so far:
> > In /usr/local/freeswitch/conf/autoload_configs/switch.conf.xml I have:
> > <param name="mailer-app" value="sendmail"/> <param
> > name="mailer-app-args" value="-t"/> <param name="dump-cores"
> > value="yes"/>
> >
> > In the user directory entry I have:
> > <param name="vm-mailto" value="sdevoy at bizfocused.com<mailto:sdevoy at bizfocused.com><mailto:sdevoy at bizfocused.com<mailto:sdevoy at bizfocused.com>>"/>
> > <param name="vm-mailfrom" value="voicemail at bizfocused.com<mailto:voicemail at bizfocused.com><mailto:voicemail at bizfocused.com<mailto:voicemail at bizfocused.com>>"/>
> > <param name="vm-email-all-messages" value="true"/>
> > <param name="vm-attach-file" value="true" />
> >
> > I can send emails from SSH when logged in as root.
> > mail -s "Test mail from testuser1" sdevoy at bizfocused.com<mailto:sdevoy at bizfocused.com><mailto:sdevoy at bizfocused.com<mailto:sdevoy at bizfocused.com>>
> > Hello this is the test mail
> > .
> >
> > I can't find any errors in the console log, but no email gets sent.
> >
> > Have I missed something about creating a freeswitch user in sendmail???
> >
> > Thanks,
> > Sean
> >
> >
> >
> >
> > ______________________________________________________________________
> > ___
> >
> > Professional FreeSWITCH Consulting Services:
> >
> > consulting at freeswitch.org<mailto:consulting at freeswitch.org><mailto:consulting at freeswitch.org<mailto: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<mailto:FreeSWITCH-users at lists.freeswitch.org><mailto:FreeSWITCH-users at lists.fr<mailto:FreeSWITCH-users at lists.fr>
> > eeswitch.org<http://eeswitch.org>>
> >
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> >
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-use
> > rs
> >
> > http://www.freeswitch.org
> >
> >
> > ----------------------------------------------------
> > Alternatives:
> >
> > ----------------------------------------------------
> > ______________________________________________________________________
> > ___ Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org<mailto: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<mailto:FreeSWITCH-users at lists.freeswitch.org>
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-use
> > rs
> > http://www.freeswitch.org
>
> --
> Your life is like a penny. You're going to lose it. The question is:
> How do
> you spend it?
>
> John Covici
> covici at ccs.covici.com<mailto:covici at ccs.covici.com>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org<mailto: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<mailto: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
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org<mailto: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<mailto: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
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org<mailto: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<mailto: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
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org<mailto: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<mailto: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
>
>
> ----------------------------------------------------
> Alternatives:
>
> ----------------------------------------------------
> _________________________________________________________________________
> 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
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici at ccs.covici.com
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list