VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
freeswitch-users at li... Guest
|
Posted: Wed Sep 28, 2022 9:29 pm Post subject: [Freeswitch-users] send voicemail with shell script |
|
|
------ Start of attached email. Subject: send voicemail with shell script ------
Hi,
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 to be 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.
Any suggestions would be great.
Thanks.
Sean
------ End of attached email ------
_________________________________________________________________________
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 |
|
Back to top |
|
|
freeswitch-users at li... Guest
|
|
Back to top |
|
|
covici at ccs.covici.com Guest
|
|
Back to top |
|
|
Antony.Stone at freesw... Guest
|
Posted: Fri Sep 30, 2022 3:29 pm Post subject: [Freeswitch-users] send voicemail with shell script |
|
|
On Friday 30 September 2022 at 22:01:20, Sean Devoy via FreeSWITCH-users
wrote:
Quote: | 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 |
|
Back to top |
|
|
freeswitch-users at li... Guest
|
Posted: Fri Sep 30, 2022 3:49 pm Post subject: [Freeswitch-users] send voicemail with shell script |
|
|
------ Start of attached email. Subject: RE: [Freeswitch-users] send voicemail with shell script ------
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.
Quote: | <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:
--
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
------ End of attached email ------
_________________________________________________________________________
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 |
|
Back to top |
|
|
covici at ccs.covici.com Guest
|
Posted: Fri Sep 30, 2022 5:03 pm Post subject: [Freeswitch-users] send voicemail with shell script |
|
|
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:
Quote: |
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.
Quote: | <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:
--
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
_________________________________________________________________________
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 |
|
Back to top |
|
|
lmorley at neny.cslimi... Guest
|
Posted: Fri Sep 30, 2022 5:34 pm Post subject: [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:
Quote: | On Friday 30 September 2022 at 22:01:20, Sean Devoy via
FreeSWITCH-users
wrote:
Quote: | Thanks for the reply. But, I do NOT want sendmail. I want it to run
| my
Quote: | script and provide the number called, the wav file and the mail-to
| address
Quote: | 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
|
_________________________________________________________________________
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 |
|
Back to top |
|
|
Antony.Stone at freesw... Guest
|
Posted: Fri Sep 30, 2022 5:39 pm Post subject: [Freeswitch-users] send voicemail with shell script |
|
|
On Friday 30 September 2022 at 23:29:33, John Covici wrote:
Quote: | 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 |
|
Back to top |
|
|
freeswitch-users at li... Guest
|
Posted: Sat Oct 01, 2022 3:59 pm Post subject: [Freeswitch-users] send voicemail with shell script |
|
|
------ Start of attached email. Subject: RE: [Freeswitch-users] send voicemail with shell script ------
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:
Quote: | 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
------ End of attached email ------
_________________________________________________________________________
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 |
|
Back to top |
|
|
freeswitch-users at li... Guest
|
Posted: Sat Oct 01, 2022 5:25 pm Post subject: [Freeswitch-users] send voicemail with shell script |
|
|
------ Start of attached email. Subject: RE: Re: [Freeswitch-users] send voicemail with shell script ------
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:
Quote: | On Friday 30 September 2022 at 22:01:20, Sean Devoy via
FreeSWITCH-users
wrote:
Quote: | Thanks for the reply. But, I do NOT want sendmail. I want it to run
| my
Quote: | script and provide the number called, the wav file and the mail-to
| address
Quote: | 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
------ End of attached email ------
_________________________________________________________________________
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 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|