[Freeswitch-users] send voicemail with shell script

John Covici covici at ccs.covici.com
Fri Sep 30 21:29:33 UTC 2022


What is in your shell script -- somewhere in there it should call
sendmail.

On Fri, 30 Sep 2022 16:00:33 -0400,
Sean Devoy wrote:
> 
> Thanks for the reply. But, I do NOT want sendmail. I want it to run my script and provide the number called, the wav file and the mail-to address from the config.
> I cannot get it to call any script.  
> 
> I thought that's what these lines did in switch.conf.xml.
> > 	  <param name="mailer-app" value="/bin/bash /usr/share/freeswitch/scripts/emailwav.sh"/>
> > 	  <param name="mailer-app-args" value=""/> and restarted Freeswitch.
> 
> No matter what I do, it tries sendmail (and fails). I wish I could get sendmail to relay through my post office, but I have never been able get it to work.
> The script I am trying just runs CURL to send those items to a web service that handles the email part.
> 
> Sean
> -----Original Message-----
> From: John Covici <covici at ccs.covici.com> 
> Sent: Friday, September 30, 2022 3:43 PM
> To: Sean Devoy <sdevoy at bizfocused.com>; FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> Subject: Re: [Freeswitch-users] send voicemail with shell script
> 
> Where you say the app you want is sendmail, I think this is your problem, instead tell it your shell script and make the arguments what you want and the shell script will invoke sendmail itself.
> 
> On Fri, 30 Sep 2022 15:35:30 -0400,
> Sean Devoy via FreeSWITCH-users wrote:
> > 
> > [1  <message/rfc822 (7bit)>]
> > To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> > Subject: RE: [Freeswitch-users] send voicemail with shell script
> > From: Sean Devoy <sdevoy at bizfocused.com>
> > Date: Fri, 30 Sep 2022 19:24:14 +0000
> > 
> > Bump.
> > 
> > Can anyone help with this please? I have tried the manuals and searches and I am stuck.
> > Also, why is my message always made an attachment in the list. I have it set to send "Plain Text".
> > 
> > Original Message:
> > I have a shell script that sends my voicemail files as I need them to be sent.  However, I cannot get that emailwav.sh file called.
> > In switch.conf.xml I changed:
> > 	  <param name="mailer-app" value="sendmail"/>
> > 	  <param name="mailer-app-args" value="-t"/>
> > To:
> > 	  <param name="mailer-app" value="/bin/bash /usr/share/freeswitch/scripts/emailwav.sh"/>
> > 	  <param name="mailer-app-args" value=""/> and restarted Freeswitch.
> > 
> > It still tries to send with sendmail.
> > 
> > Thanks,
> > Sean
> > 
> > -----Original Message-----
> > From: FreeSWITCH-users <freeswitch-users-bounces at lists.freeswitch.org> 
> > On Behalf Of Sean Devoy via FreeSWITCH-users
> > Sent: Wednesday, September 28, 2022 10:36 PM
> > To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> > Subject: [Freeswitch-users] send voicemail with shell script
> > 
> > ______________________________________________________________________
> > ___
> > 
> > The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
> > Build your next product on our scalable cloud platform.
> > 
> > Join our online community to chat in real time 
> > https://signalwire.community
> > 
> > Professional FreeSWITCH Services
> > sales at freeswitch.com
> > https://freeswitch.com
> > 
> > Official FreeSWITCH Sites
> > https://freeswitch.com/oss
> > https://freeswitch.org/confluence
> > https://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-use
> > rs
> > https://freeswitch.com
> > [2  <text/plain; utf-8 (base64)>]
> > ______________________________________________________________________
> > ___
> > 
> > The FreeSWITCH project is sponsored by SignalWire 
> > https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
> > Build your next product on our scalable cloud platform.
> > 
> > Join our online community to chat in real time 
> > https://signalwire.community
> > 
> > Professional FreeSWITCH Services
> > sales at freeswitch.com
> > https://freeswitch.com
> > 
> > Official FreeSWITCH Sites
> > https://freeswitch.com/oss
> > https://freeswitch.org/confluence
> > https://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-use
> > rs
> > https://freeswitch.com
> 
> --
> Your life is like a penny.  You're going to lose it.  The question is:
> How do
> you spend it?
> 
>          John Covici wb2una
>          covici at ccs.covici.com
> 

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici wb2una
         covici at ccs.covici.com



More information about the FreeSWITCH-users mailing list