Re: [Freeswitch-users] send voicemail with shell script
On Friday 30 September 2022 at 22:01:20, Sean Devoy via FreeSWITCH-users 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.
Have you tried: <param name="mailer-app" value="/usr/share/freeswitch/scripts/emailwav.sh"/> <param name="mailer-app-args" value="whatever you want the script to see"/> In other words, specify the "app" as the script name, and the "args" as the parameters you want to pass it. This assumes that your script is executable by the freeswitch user and contains "#!/bin/bash" as the first line. Antony. -- "How I managed so long without this book baffles the mind." - Richard Stoakley, Group Program Manager, Microsoft Corporation, referring to "The Art of Project Management", O'Reilly press Please reply to the list; please *don't* CC me.
"This problem seems a bit strange and unusual; I, myself am strange and unusual". I thought I saw you had mentioned that sendmail was always invoked. Sure this isn't an OS configuration problem? There are far too many ways to ensure sendmail is exec'd and not the program you're trying to run. Especially if someone had deliberately compromised your system. Might be worth a look. - Larry On Sep 30, 2022, 16:08, at 16:08, Antony Stone <antony.stone@freeswitch.open.source.it> wrote:
On Friday 30 September 2022 at 22:01:20, Sean Devoy via FreeSWITCH-users 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.
Have you tried:
<param name="mailer-app" value="/usr/share/freeswitch/scripts/emailwav.sh"/> <param name="mailer-app-args" value="whatever you want the script to see"/>
In other words, specify the "app" as the script name, and the "args" as the parameters you want to pass it.
This assumes that your script is executable by the freeswitch user and contains "#!/bin/bash" as the first line.
Antony.
-- "How I managed so long without this book baffles the mind."
- Richard Stoakley, Group Program Manager, Microsoft Corporation, referring to "The Art of Project Management", O'Reilly press
Please reply to the list; please *don't* CC me.
_________________________________________________________________________
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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
Thank you all for your help. I do wish I could get this working; I know I used the script years ago and it is a handy backup. My immediate problem has been solved. I hired someone to get sendmail working on the FS server using my relay post office. My VMs now arrive in email. It uses sendmail regardless of the mailer-app setting in switch.conf.xml. I restarted FS after every change to switch.conf.xml. -----Original Message----- From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Larry Morley Sent: Friday, September 30, 2022 6:00 PM To: Sean Devoy via FreeSWITCH-users <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] send voicemail with shell script "This problem seems a bit strange and unusual; I, myself am strange and unusual". I thought I saw you had mentioned that sendmail was always invoked. Sure this isn't an OS configuration problem? There are far too many ways to ensure sendmail is exec'd and not the program you're trying to run. Especially if someone had deliberately compromised your system. Might be worth a look. - Larry On Sep 30, 2022, 16:08, at 16:08, Antony Stone <antony.stone@freeswitch.open.source.it> wrote:
On Friday 30 September 2022 at 22:01:20, Sean Devoy via FreeSWITCH-users 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.
Have you tried:
<param name="mailer-app" value="/usr/share/freeswitch/scripts/emailwav.sh"/> <param name="mailer-app-args" value="whatever you want the script to see"/>
In other words, specify the "app" as the script name, and the "args" as the parameters you want to pass it.
This assumes that your script is executable by the freeswitch user and contains "#!/bin/bash" as the first line.
Antony.
-- "How I managed so long without this book baffles the mind."
- Richard Stoakley, Group Program Manager, Microsoft Corporation, referring to "The Art of Project Management", O'Reilly press
Please reply to the list; please *don't* CC me.
_______________________________________________________________________ __
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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-user s https://freeswitch.com
_________________________________________________________________________ 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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
participants (3)
-
Antony Stone
-
Larry Morley
-
Sean Devoy