Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] send voicemail with shell script


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
freeswitch-users at li...
Guest





PostPosted: Wed Sep 28, 2022 9:29 pm    Post subject: [Freeswitch-users] send voicemail with shell script Reply with quote

------ 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





PostPosted: Fri Sep 30, 2022 2:33 pm    Post subject: [Freeswitch-users] send voicemail with shell script Reply with quote

------ Start of attached email. Subject: RE: [Freeswitch-users] send voicemail with shell script ------
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

------ 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





PostPosted: Fri Sep 30, 2022 3:02 pm    Post subject: [Freeswitch-users] send voicemail with shell script Reply with quote

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:
Quote:

[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

_________________________________________________________________________

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





PostPosted: Fri Sep 30, 2022 3:29 pm    Post subject: [Freeswitch-users] send voicemail with shell script Reply with 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
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





PostPosted: Fri Sep 30, 2022 3:49 pm    Post subject: [Freeswitch-users] send voicemail with shell script Reply with quote

------ 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:
Quote:

[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



------ 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





PostPosted: Fri Sep 30, 2022 5:03 pm    Post subject: [Freeswitch-users] send voicemail with shell script Reply with quote

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:
Quote:

[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

_________________________________________________________________________

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





PostPosted: Fri Sep 30, 2022 5:34 pm    Post subject: [Freeswitch-users] send voicemail with shell script Reply with quote

"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





PostPosted: Fri Sep 30, 2022 5:39 pm    Post subject: [Freeswitch-users] send voicemail with shell script Reply with quote

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





PostPosted: Sat Oct 01, 2022 3:59 pm    Post subject: [Freeswitch-users] send voicemail with shell script Reply with quote

------ 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





PostPosted: Sat Oct 01, 2022 5:25 pm    Post subject: [Freeswitch-users] send voicemail with shell script Reply with quote

------ 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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services