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@lists.freeswitch.org> Subject: RE: [Freeswitch-users] send voicemail with shell script From: Sean Devoy <sdevoy@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@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@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@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 [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@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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici wb2una covici@ccs.covici.com
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@ccs.covici.com> Sent: Friday, September 30, 2022 3:43 PM To: Sean Devoy <sdevoy@bizfocused.com>; FreeSWITCH Users Help <freeswitch-users@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@lists.freeswitch.org> Subject: RE: [Freeswitch-users] send voicemail with shell script From: Sean Devoy <sdevoy@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@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@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@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-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@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-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@ccs.covici.com
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@ccs.covici.com> Sent: Friday, September 30, 2022 3:43 PM To: Sean Devoy <sdevoy@bizfocused.com>; FreeSWITCH Users Help <freeswitch-users@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@lists.freeswitch.org> Subject: RE: [Freeswitch-users] send voicemail with shell script From: Sean Devoy <sdevoy@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@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@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@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-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@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-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@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@ccs.covici.com
On Friday 30 September 2022 at 23:29:33, John Covici wrote:
What is in your shell script -- somewhere in there it should call sendmail.
Well, he did say "I have a shell script that sends my voicemail files as I need them to be sent" so I'm assuming this means that the script actually does what it's required to do. He then said "I cannot get that emailwav.sh file to be called" so the problem seems to be FreeSwitch not calling the script, rather than the script not doing its job. It would be good to know how Sean knows that the script is not being called, though, because the only problem report was "It still tries to send with sendmail", and this makes it unclear whether FreeSwitch (directly) or the script is calling sendmail. Antony. -- There's a good theatrical performance about puns on in the West End. It's a play on words. Please reply to the list; please *don't* CC me.
The freeswitch logfile832 Deliver VM to 220@voicemail_BFIS 925 Update MWI: Processing for 220@voicemail_BFIS in in 950 Update MWI: Messages Waiting yes 951 Update MWI: Update Reason NEW 952 Update MWI: Message Account 220@voicemail_BFIS 953 Update MWI: Voice Message 1/0 Emailed file [/tmp/mail.1664656071cd3a] to [sean@devo 042 Sending message to sean@dev still says -----Original Message----- From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Antony Stone Sent: Friday, September 30, 2022 6:18 PM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] send voicemail with shell script On Friday 30 September 2022 at 23:29:33, John Covici wrote:
What is in your shell script -- somewhere in there it should call sendmail.
Well, he did say "I have a shell script that sends my voicemail files as I need them to be sent" so I'm assuming this means that the script actually does what it's required to do. He then said "I cannot get that emailwav.sh file to be called" so the problem seems to be FreeSwitch not calling the script, rather than the script not doing its job. It would be good to know how Sean knows that the script is not being called, though, because the only problem report was "It still tries to send with sendmail", and this makes it unclear whether FreeSwitch (directly) or the script is calling sendmail. Antony. -- There's a good theatrical performance about puns on in the West End. It's a play on words. 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
participants (3)
-
Antony Stone
-
John Covici
-
Sean Devoy