Re: [Freeswitch-users] voicemail options [temporarly solved]
Also no need to uninstall sendmail, just install ssmtp and that's it ! ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Thursday, March 18, 2010 1:59 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] Hi Anthony, after 5 days of tests to resolve the hell of sendmail segmentation fault, my conclusion is there is definitely a problem with the combination of cat, pipe and sendmail or other mail app. I made a php script that fits the actual switch_utils.c exec, but it's the same, it works one time on 10. So the robustest solution is to replace sendmail by ssmtp (yum install ssmtp or apt-get ssmtp etc...) configure /etc/ssmtp/revaliases and /etc/ssmtp/ssmtp.conf, change the switch.conf.xml like this <param name="mailer-app" value="/usr/sbin/ssmtp"/> <param name="mailer-app-args" value="-t"/> and apply the patch attached (no choice since it needs filename as argument and not STDIN). hope it will help people who have sendmail segmentation fault problem. Regards Franck ----- Original Message ----- From: Anthony Minessale To: freeswitch-users@lists.freeswitch.org Sent: Wednesday, March 17, 2010 4:37 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] FYI if you made the change in your working copy you could generate a patch with svn diff > patch.txt After looking at your change, the problem is that many people depend on this working the way it currently is. Would you consider making a script that mimics the current behavior of a mailer app and read the file from stdin and deliver the subsequent file so it is backwards-compatible with the way everything already works? On Wed, Mar 17, 2010 at 3:26 PM, Madovsky <infos@madovsky.org> wrote: Sorry Anthony I never made an official update in C language with diff patch so the change is at the line 620, I commented out the original line ----- Original Message ----- From: Anthony Minessale To: freeswitch-users@lists.freeswitch.org Sent: Wednesday, March 17, 2010 3:55 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] could you get a svn diff of the switch_utils.c so we can see what the change was? On Wed, Mar 17, 2010 at 2:46 PM, Madovsky <infos@madovsky.org> wrote: Finally I succeed to send voicemail with sendmail through a little php script (could be Perl also) it seems that sendmail 8.14.3 has a bug. But call it from PHP the bug doesn't exist. I attached my php script and switch_utils.c. Not sure if the FS developers will accept my modification Regards Franck ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Tuesday, March 16, 2010 4:35 PM Subject: Re: [Freeswitch-users] voicemail options ok, I tried 50 times to leave a message, it worked only one time. It seems that sendmail needs to be free to send the email.... ----- Original Message ----- From: devel@thom.fr.eu.org To: freeswitch-users@lists.freeswitch.org Sent: Tuesday, March 16, 2010 3:59 PM Subject: Re: [Freeswitch-users] voicemail options Are you running debian, I have the same problem on debian x64 (already mentioned here http://lists.freeswitch.org/pipermail/freeswitch-users/2010-January/024733.h...) and cannot fix it. I don’t know if it’s a priviledge problem, as I got the same results running FS with or without –u. François De : freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] De la part de Anthony Minessale Envoyé : mardi 16 mars 2010 20:30 À : freeswitch-users@lists.freeswitch.org Objet : Re: [Freeswitch-users] voicemail options are you running FS as root or a regular user? maybe there is a permission or resource limitation problem preventing it from getting the larger stack space necessary? On Tue, Mar 16, 2010 at 2:18 PM, Madovsky <infos@madovsky.org> wrote: I noticed that sendmail makes a segfault when FS is trying to send email and sendmail has some emails locked in folder queue.... Regards Franck _______________________________________________ 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 http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 ------------------------------------------------------------------ _______________________________________________ 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 http://www.freeswitch.org _______________________________________________ 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 http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 ------------------------------------------------------------------------ _______________________________________________ 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 http://www.freeswitch.org _______________________________________________ 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 http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 ---------------------------------------------------------------------------- _______________________________________________ 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 http://www.freeswitch.org
The dilemma is we also need solution that is compat with windows, bsd, mac etc. That is sort of interesting that the pipe is breaking, it would be nice to figure out why since not everybody seems to have it. I am still wondering if it's a stack size running out issue in the child thread from system. Are you running FS as root or as a non-privileged user, i'm wondering because maybe if its a regular user, its not able to increase the stack size up to 8megs maybe you can push in strace into the command so it will show why it breaks. On Thu, Mar 18, 2010 at 1:10 PM, Madovsky <infos@madovsky.org> wrote:
Also no need to uninstall sendmail, just install ssmtp and that's it !
----- Original Message ----- *From:* Madovsky <infos@madovsky.org> *To:* freeswitch-users@lists.freeswitch.org *Sent:* Thursday, March 18, 2010 1:59 PM *Subject:* Re: [Freeswitch-users] voicemail options [temporarly solved]
Hi Anthony,
after 5 days of tests to resolve the hell of sendmail segmentation fault, my conclusion is there is definitely a problem with the combination of cat, pipe and sendmail or other mail app. I made a php script that fits the actual switch_utils.c exec, but it's the same, it works one time on 10. So the robustest solution is to replace sendmail by ssmtp (yum install ssmtp or apt-get ssmtp etc...)
configure /etc/ssmtp/revaliases and /etc/ssmtp/ssmtp.conf, change the switch.conf.xml like this
<param name="mailer-app" value="/usr/sbin/ssmtp"/> <param name="mailer-app-args" value="-t"/>
and apply the patch attached (no choice since it needs filename as argument and not STDIN).
hope it will help people who have sendmail segmentation fault problem.
Regards
Franck
----- Original Message ----- *From:* Anthony Minessale <anthony.minessale@gmail.com> *To:* freeswitch-users@lists.freeswitch.org *Sent:* Wednesday, March 17, 2010 4:37 PM *Subject:* Re: [Freeswitch-users] voicemail options [temporarly solved]
FYI if you made the change in your working copy you could generate a patch with
svn diff > patch.txt
After looking at your change, the problem is that many people depend on this working the way it currently is. Would you consider making a script that mimics the current behavior of a mailer app and read the file from stdin and deliver the subsequent file so it is backwards-compatible with the way everything already works?
On Wed, Mar 17, 2010 at 3:26 PM, Madovsky <infos@madovsky.org> wrote:
Sorry Anthony I never made an official update in C language with diff patch so the change is at the line 620, I commented out the original line
----- Original Message ----- *From:* Anthony Minessale <anthony.minessale@gmail.com> *To:* freeswitch-users@lists.freeswitch.org *Sent:* Wednesday, March 17, 2010 3:55 PM *Subject:* Re: [Freeswitch-users] voicemail options [temporarly solved]
could you get a svn diff of the switch_utils.c so we can see what the change was?
On Wed, Mar 17, 2010 at 2:46 PM, Madovsky <infos@madovsky.org> wrote:
Finally I succeed to send voicemail with sendmail through a little php script (could be Perl also) it seems that sendmail 8.14.3 has a bug. But call it from PHP the bug doesn't exist.
I attached my php script and switch_utils.c. Not sure if the FS developers will accept my modification
Regards
Franck
----- Original Message ----- *From:* Madovsky <infos@madovsky.org> *To:* freeswitch-users@lists.freeswitch.org *Sent:* Tuesday, March 16, 2010 4:35 PM *Subject:* Re: [Freeswitch-users] voicemail options
ok, I tried 50 times to leave a message, it worked only one time. It seems that sendmail needs to be free to send the email....
----- Original Message ----- *From:* devel@thom.fr.eu.org *To:* freeswitch-users@lists.freeswitch.org *Sent:* Tuesday, March 16, 2010 3:59 PM *Subject:* Re: [Freeswitch-users] voicemail options
Are you running debian, I have the same problem on debian x64 (already mentioned here http://lists.freeswitch.org/pipermail/freeswitch-users/2010-January/024733.h...) and cannot fix it.
I don’t know if it’s a priviledge problem, as I got the same results running FS with or without –u.
François
*De :* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *De la part de* Anthony Minessale *Envoyé :* mardi 16 mars 2010 20:30 *À :* freeswitch-users@lists.freeswitch.org *Objet :* Re: [Freeswitch-users] voicemail options
are you running FS as root or a regular user? maybe there is a permission or resource limitation problem preventing it from getting the larger stack space necessary?
On Tue, Mar 16, 2010 at 2:18 PM, Madovsky <infos@madovsky.org> wrote:
I noticed that sendmail makes a segfault when FS is trying to send email
and sendmail has some emails locked in folder queue....
Regards
Franck
_______________________________________________ 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 http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
------------------------------
_______________________________________________ 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 http://www.freeswitch.org
_______________________________________________ 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 http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
------------------------------
_______________________________________________ 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 http://www.freeswitch.org
_______________________________________________ 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 http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
------------------------------
_______________________________________________ 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 http://www.freeswitch.org
_______________________________________________ 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 http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
Ok, I read that there are some guys who had the same problem here. I run FS as root, but sendmail as chroot smmsp user. You're right maybe it's a thread child problem. I saw there is a windows condition already in your code ? and for mac it should work since ssmtp is in standard in all package, even for solaris and hp-ux. I will experiment with strace tonight or tomorrow ----- Original Message ----- From: Anthony Minessale To: freeswitch-users@lists.freeswitch.org Sent: Thursday, March 18, 2010 4:10 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] The dilemma is we also need solution that is compat with windows, bsd, mac etc. That is sort of interesting that the pipe is breaking, it would be nice to figure out why since not everybody seems to have it. I am still wondering if it's a stack size running out issue in the child thread from system. Are you running FS as root or as a non-privileged user, i'm wondering because maybe if its a regular user, its not able to increase the stack size up to 8megs maybe you can push in strace into the command so it will show why it breaks. On Thu, Mar 18, 2010 at 1:10 PM, Madovsky <infos@madovsky.org> wrote: Also no need to uninstall sendmail, just install ssmtp and that's it ! ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Thursday, March 18, 2010 1:59 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] Hi Anthony, after 5 days of tests to resolve the hell of sendmail segmentation fault, my conclusion is there is definitely a problem with the combination of cat, pipe and sendmail or other mail app. I made a php script that fits the actual switch_utils.c exec, but it's the same, it works one time on 10. So the robustest solution is to replace sendmail by ssmtp (yum install ssmtp or apt-get ssmtp etc...) configure /etc/ssmtp/revaliases and /etc/ssmtp/ssmtp.conf, change the switch.conf.xml like this <param name="mailer-app" value="/usr/sbin/ssmtp"/> <param name="mailer-app-args" value="-t"/> and apply the patch attached (no choice since it needs filename as argument and not STDIN). hope it will help people who have sendmail segmentation fault problem. Regards Franck ----- Original Message ----- From: Anthony Minessale To: freeswitch-users@lists.freeswitch.org Sent: Wednesday, March 17, 2010 4:37 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] FYI if you made the change in your working copy you could generate a patch with svn diff > patch.txt After looking at your change, the problem is that many people depend on this working the way it currently is. Would you consider making a script that mimics the current behavior of a mailer app and read the file from stdin and deliver the subsequent file so it is backwards-compatible with the way everything already works? On Wed, Mar 17, 2010 at 3:26 PM, Madovsky <infos@madovsky.org> wrote: Sorry Anthony I never made an official update in C language with diff patch so the change is at the line 620, I commented out the original line ----- Original Message ----- From: Anthony Minessale To: freeswitch-users@lists.freeswitch.org Sent: Wednesday, March 17, 2010 3:55 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] could you get a svn diff of the switch_utils.c so we can see what the change was? On Wed, Mar 17, 2010 at 2:46 PM, Madovsky <infos@madovsky.org> wrote: Finally I succeed to send voicemail with sendmail through a little php script (could be Perl also) it seems that sendmail 8.14.3 has a bug. But call it from PHP the bug doesn't exist. I attached my php script and switch_utils.c. Not sure if the FS developers will accept my modification Regards Franck ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Tuesday, March 16, 2010 4:35 PM Subject: Re: [Freeswitch-users] voicemail options ok, I tried 50 times to leave a message, it worked only one time. It seems that sendmail needs to be free to send the email.... ----- Original Message ----- From: devel@thom.fr.eu.org To: freeswitch-users@lists.freeswitch.org Sent: Tuesday, March 16, 2010 3:59 PM Subject: Re: [Freeswitch-users] voicemail options Are you running debian, I have the same problem on debian x64 (already mentioned here http://lists.freeswitch.org/pipermail/freeswitch-users/2010-January/024733.h...) and cannot fix it. I don’t know if it’s a priviledge problem, as I got the same results running FS with or without –u. François De : freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] De la part de Anthony Minessale Envoyé : mardi 16 mars 2010 20:30 À : freeswitch-users@lists.freeswitch.org Objet : Re: [Freeswitch-users] voicemail options are you running FS as root or a regular user? maybe there is a permission or resource limitation problem preventing it from getting the larger stack space necessary? On Tue, Mar 16, 2010 at 2:18 PM, Madovsky <infos@madovsky.org> wrote: I noticed that sendmail makes a segfault when FS is trying to send email and sendmail has some emails locked in folder queue.... Regards Franck _______________________________________________ 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 http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 ---------------------------------------------------------------- _______________________________________________ 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 http://www.freeswitch.org _______________________________________________ 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 http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 ---------------------------------------------------------------------- _______________________________________________ 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 http://www.freeswitch.org _______________________________________________ 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 http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 -------------------------------------------------------------------------- _______________________________________________ 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 http://www.freeswitch.org _______________________________________________ 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 http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 ------------------------------------------------------------------------------ _______________________________________________ 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 http://www.freeswitch.org
but I think that the patch can also work with sendmail as default config too... it needs a test with someone who uses sendmail without seg fault... ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Thursday, March 18, 2010 5:24 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] Ok, I read that there are some guys who had the same problem here. I run FS as root, but sendmail as chroot smmsp user. You're right maybe it's a thread child problem. I saw there is a windows condition already in your code ? and for mac it should work since ssmtp is in standard in all package, even for solaris and hp-ux. I will experiment with strace tonight or tomorrow ----- Original Message ----- From: Anthony Minessale To: freeswitch-users@lists.freeswitch.org Sent: Thursday, March 18, 2010 4:10 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] The dilemma is we also need solution that is compat with windows, bsd, mac etc. That is sort of interesting that the pipe is breaking, it would be nice to figure out why since not everybody seems to have it. I am still wondering if it's a stack size running out issue in the child thread from system. Are you running FS as root or as a non-privileged user, i'm wondering because maybe if its a regular user, its not able to increase the stack size up to 8megs maybe you can push in strace into the command so it will show why it breaks. On Thu, Mar 18, 2010 at 1:10 PM, Madovsky <infos@madovsky.org> wrote: Also no need to uninstall sendmail, just install ssmtp and that's it ! ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Thursday, March 18, 2010 1:59 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] Hi Anthony, after 5 days of tests to resolve the hell of sendmail segmentation fault, my conclusion is there is definitely a problem with the combination of cat, pipe and sendmail or other mail app. I made a php script that fits the actual switch_utils.c exec, but it's the same, it works one time on 10. So the robustest solution is to replace sendmail by ssmtp (yum install ssmtp or apt-get ssmtp etc...) configure /etc/ssmtp/revaliases and /etc/ssmtp/ssmtp.conf, change the switch.conf.xml like this <param name="mailer-app" value="/usr/sbin/ssmtp"/> <param name="mailer-app-args" value="-t"/> and apply the patch attached (no choice since it needs filename as argument and not STDIN). hope it will help people who have sendmail segmentation fault problem. Regards Franck ----- Original Message ----- From: Anthony Minessale To: freeswitch-users@lists.freeswitch.org Sent: Wednesday, March 17, 2010 4:37 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] FYI if you made the change in your working copy you could generate a patch with svn diff > patch.txt After looking at your change, the problem is that many people depend on this working the way it currently is. Would you consider making a script that mimics the current behavior of a mailer app and read the file from stdin and deliver the subsequent file so it is backwards-compatible with the way everything already works? On Wed, Mar 17, 2010 at 3:26 PM, Madovsky <infos@madovsky.org> wrote: Sorry Anthony I never made an official update in C language with diff patch so the change is at the line 620, I commented out the original line ----- Original Message ----- From: Anthony Minessale To: freeswitch-users@lists.freeswitch.org Sent: Wednesday, March 17, 2010 3:55 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] could you get a svn diff of the switch_utils.c so we can see what the change was? On Wed, Mar 17, 2010 at 2:46 PM, Madovsky <infos@madovsky.org> wrote: Finally I succeed to send voicemail with sendmail through a little php script (could be Perl also) it seems that sendmail 8.14.3 has a bug. But call it from PHP the bug doesn't exist. I attached my php script and switch_utils.c. Not sure if the FS developers will accept my modification Regards Franck ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Tuesday, March 16, 2010 4:35 PM Subject: Re: [Freeswitch-users] voicemail options ok, I tried 50 times to leave a message, it worked only one time. It seems that sendmail needs to be free to send the email.... ----- Original Message ----- From: devel@thom.fr.eu.org To: freeswitch-users@lists.freeswitch.org Sent: Tuesday, March 16, 2010 3:59 PM Subject: Re: [Freeswitch-users] voicemail options Are you running debian, I have the same problem on debian x64 (already mentioned here http://lists.freeswitch.org/pipermail/freeswitch-users/2010-January/024733.h...) and cannot fix it. I don’t know if it’s a priviledge problem, as I got the same results running FS with or without –u. François De : freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] De la part de Anthony Minessale Envoyé : mardi 16 mars 2010 20:30 À : freeswitch-users@lists.freeswitch.org Objet : Re: [Freeswitch-users] voicemail options are you running FS as root or a regular user? maybe there is a permission or resource limitation problem preventing it from getting the larger stack space necessary? On Tue, Mar 16, 2010 at 2:18 PM, Madovsky <infos@madovsky.org> wrote: I noticed that sendmail makes a segfault when FS is trying to send email and sendmail has some emails locked in folder queue.... Regards Franck _______________________________________________ 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 http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 -------------------------------------------------------------- _______________________________________________ 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 http://www.freeswitch.org _______________________________________________ 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 http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 -------------------------------------------------------------------- _______________________________________________ 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 http://www.freeswitch.org _______________________________________________ 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 http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 ------------------------------------------------------------------------ _______________________________________________ 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 http://www.freeswitch.org _______________________________________________ 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 http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 ---------------------------------------------------------------------------- _______________________________________________ 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 http://www.freeswitch.org ------------------------------------------------------------------------------ _______________________________________________ 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 http://www.freeswitch.org
Actually, I do not seem to have the same problem. I don't get the broken pipe error, nor do I get any error in FS log or console (the error message in log disappeared after some upgrade but I don't remember which). However, what I can tell is that I get the problem as root AND as non root. I can also tell that sending the exact same message with the exact same command line as my freeswitch user work (sudo -u freeswitch cat savedmail | sendmail -f freeswitch@mydomain -t some.user@mydomain). This does not seem to be an environment problem either (I could not seem significant differences between the 2). I'm about to strace what happens too. François On Thu, 18 Mar 2010 17:24:41 -0400, "Madovsky" wrote: Ok, I read that there are some guys who had the same problem here. I run FS as root, but sendmail as chroot smmsp user. You're right maybe it's a thread child problem. I saw there is a windows condition already in your code ? and for mac it should work since ssmtp is in standard in all package, even for solaris and hp-ux. I will experiment with strace tonight or tomorrow ----- Original Message ----- FROM: Anthony Minessale [1] TO: freeswitch-users@lists.freeswitch.org [2] SENT: Thursday, March 18, 2010 4:10 PM SUBJECT: Re: [Freeswitch-users] voicemail options [temporarly solved] The dilemma is we also need solution that is compat with windows, bsd, mac etc. That is sort of interesting that the pipe is breaking, it would be nice to figure out why since not everybody seems to have it. I am still wondering if it's a stack size running out issue in the child thread from system. Are you running FS as root or as a non-privileged user, i'm wondering because maybe if its a regular user, its not able to increase the stack size up to 8megs maybe you can push in strace into the command so it will show why it breaks. On Thu, Mar 18, 2010 at 1:10 PM, Madovsky wrote: Also no need to uninstall sendmail, just install ssmtp and that's it ! ----- Original Message ----- FROM: Madovsky [4] TO: freeswitch-users@lists.freeswitch.org [5] SENT: Thursday, March 18, 2010 1:59 PM SUBJECT: Re: [Freeswitch-users] voicemail options [temporarly solved] Hi Anthony, after 5 days of tests to resolve the hell of sendmail segmentation fault, my conclusion is there is definitely a problem with the combination of cat, pipe and sendmail or other mail app. I made a php script that fits the actual switch_utils.c exec, but it's the same, it works one time on 10. So the robustest solution is to replace sendmail by ssmtp (yum install ssmtp or apt-get ssmtp etc...) configure /etc/ssmtp/revaliases and /etc/ssmtp/ssmtp.conf, change the switch.conf.xml like this and apply the patch attached (no choice since it needs filename as argument and not STDIN). hope it will help people who have sendmail segmentation fault problem. Regards Franck ----- Original Message ----- FROM: Anthony Minessale [6] TO: freeswitch-users@lists.freeswitch.org [7] SENT: Wednesday, March 17, 2010 4:37 PM SUBJECT: Re: [Freeswitch-users] voicemail options [temporarly solved] FYI if you made the change in your working copy you could generate a patch with svn diff > patch.txt After looking at your change, the problem is that many people depend on this working the way it currently is. Would you consider making a script that mimics the current behavior of a mailer app and read the file from stdin and deliver the subsequent file so it is backwards-compatible with the way everything already works? On Wed, Mar 17, 2010 at 3:26 PM, Madovsky wrote: Sorry Anthony I never made an official update in C language with diff patch so the change is at the line 620, I commented out the original line ----- Original Message ----- FROM: Anthony Minessale [9] TO: freeswitch-users@lists.freeswitch.org [10] SENT: Wednesday, March 17, 2010 3:55 PM SUBJECT: Re: [Freeswitch-users] voicemail options [temporarly solved] could you get a svn diff of the switch_utils.c so we can see what the change was? On Wed, Mar 17, 2010 at 2:46 PM, Madovsky wrote: Finally I succeed to send voicemail with sendmail through a little php script (could be Perl also) it seems that sendmail 8.14.3 has a bug. But call it from PHP the bug doesn't exist. I attached my php script and switch_utils.c. Not sure if the FS developers will accept my modification Regards Franck ----- Original Message ----- FROM: Madovsky [12] TO: freeswitch-users@lists.freeswitch.org [13] SENT: Tuesday, March 16, 2010 4:35 PM SUBJECT: Re: [Freeswitch-users] voicemail options ok, I tried 50 times to leave a message, it worked only one time. It seems that sendmail needs to be free to send the email.... ----- Original Message ----- FROM: devel@thom.fr.eu.org [14] TO: freeswitch-users@lists.freeswitch.org [15] SENT: Tuesday, March 16, 2010 3:59 PM SUBJECT: Re: [Freeswitch-users] voicemail options Are you running debian, I have the same problem on debian x64 (already mentioned here http://lists.freeswitch.org/pipermail/freeswitch-users/2010-January/024733.h... [16]) and cannot fix it. I don't know if it's a priviledge problem, as I got the same results running FS with or without -u. François DE : freeswitch-users-bounces@lists.freeswitch.org [17] [mailto:freeswitch-users-bounces@lists.freeswitch.org [18]] DE LA PART DE Anthony Minessale ENVOY : mardi 16 mars 2010 20:30 : freeswitch-users@lists.freeswitch.org [19] OBJET : Re: [Freeswitch-users] voicemail options are you running FS as root or a regular user? maybe there is a permission or resource limitation problem preventing it from getting the larger stack space necessary? On Tue, Mar 16, 2010 at 2:18 PM, Madovsky wrote: I noticed that sendmail makes a segfault when FS is trying to send email and sendmail has some emails locked in folder queue.... Regards Franck _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org [21] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [22] UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users [23] http://www.freeswitch.org [24] -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ [25] ClueCon http://www.cluecon.com/ [26] Twitter: http://twitter.com/FreeSWITCH_wire [27] AIM: anthm MSN:anthony_minessale@hotmail.com [28] GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com [29] IRC: irc.freenode.net [30] #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org [31] iax:guest@conference.freeswitch.org/888 [32] googletalk:conf+888@conference.freeswitch.org [33] pstn:+19193869900 ------------------------- _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org [34] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [35] UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users [36] http://www.freeswitch.org [37] _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org [38] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [39] UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users [40] http://www.freeswitch.org [41] -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ [42] ClueCon http://www.cluecon.com/ [43] Twitter: http://twitter.com/FreeSWITCH_wire [44] AIM: anthm MSN:anthony_minessale@hotmail.com [45] GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com [46] IRC: irc.freenode.net [47] #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org [48] iax:guest@conference.freeswitch.org/888 [49] googletalk:conf+888@conference.freeswitch.org [50] pstn:+19193869900 ------------------------- _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org [51] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [52] UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users [53] http://www.freeswitch.org [54] _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org [55] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [56] UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users [57] http://www.freeswitch.org [58] -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ [59] ClueCon http://www.cluecon.com/ [60] Twitter: http://twitter.com/FreeSWITCH_wire [61] AIM: anthm MSN:anthony_minessale@hotmail.com [62] GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com [63] IRC: irc.freenode.net [64] #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org [65] iax:guest@conference.freeswitch.org/888 [66] googletalk:conf+888@conference.freeswitch.org [67] pstn:+19193869900 ------------------------- _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org [68] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [69] UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users [70] http://www.freeswitch.org [71] _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org [72] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [73] UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users [74] http://www.freeswitch.org [75] -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ [76] ClueCon http://www.cluecon.com/ [77] Twitter: http://twitter.com/FreeSWITCH_wire [78] AIM: anthm MSN:anthony_minessale@hotmail.com [79] GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com [80] IRC: irc.freenode.net [81] #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org [82] iax:guest@conference.freeswitch.org/888 [83] googletalk:conf+888@conference.freeswitch.org [84] pstn:+19193869900 ------------------------- _______________________________________________ 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 http://www.freeswitch.org Links: ------ [1] mailto:anthony.minessale@gmail.com [2] mailto:freeswitch-users@lists.freeswitch.org [3] mailto:infos@madovsky.org [4] mailto:infos@madovsky.org [5] mailto:freeswitch-users@lists.freeswitch.org [6] mailto:anthony.minessale@gmail.com [7] mailto:freeswitch-users@lists.freeswitch.org [8] mailto:infos@madovsky.org [9] mailto:anthony.minessale@gmail.com [10] mailto:freeswitch-users@lists.freeswitch.org [11] mailto:infos@madovsky.org [12] mailto:infos@madovsky.org [13] mailto:freeswitch-users@lists.freeswitch.org [14] mailto:devel@thom.fr.eu.org [15] mailto:freeswitch-users@lists.freeswitch.org [16] http://lists.freeswitch.org/pipermail/freeswitch-users/2010-January/024733.h... [17] mailto:freeswitch-users-bounces@lists.freeswitch.org [18] mailto:freeswitch-users-bounces@lists.freeswitch.org [19] mailto:freeswitch-users@lists.freeswitch.org [20] mailto:infos@madovsky.org [21] mailto:FreeSWITCH-users@lists.freeswitch.org [22] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [23] http://lists.freeswitch.org/mailman/options/freeswitch-users [24] http://www.freeswitch.org [25] http://www.freeswitch.org/ [26] http://www.cluecon.com/ [27] http://twitter.com/FreeSWITCH_wire [28] mailto:MSN%3Aanthony_minessale@hotmail.com [29] mailto:PAYPAL%3Aanthony.minessale@gmail.com [30] http://irc.freenode.net [31] mailto:sip%3A888@conference.freeswitch.org [32] http://iax:guest@conference.freeswitch.org/888 [33] mailto:googletalk%3Aconf%2B888@conference.freeswitch.org [34] mailto:FreeSWITCH-users@lists.freeswitch.org [35] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [36] http://lists.freeswitch.org/mailman/options/freeswitch-users [37] http://www.freeswitch.org [38] mailto:FreeSWITCH-users@lists.freeswitch.org [39] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [40] http://lists.freeswitch.org/mailman/options/freeswitch-users [41] http://www.freeswitch.org [42] http://www.freeswitch.org/ [43] http://www.cluecon.com/ [44] http://twitter.com/FreeSWITCH_wire [45] mailto:MSN%3Aanthony_minessale@hotmail.com [46] mailto:PAYPAL%3Aanthony.minessale@gmail.com [47] http://irc.freenode.net [48] mailto:sip%3A888@conference.freeswitch.org [49] http://iax:guest@conference.freeswitch.org/888 [50] mailto:googletalk%3Aconf%2B888@conference.freeswitch.org [51] mailto:FreeSWITCH-users@lists.freeswitch.org [52] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [53] http://lists.freeswitch.org/mailman/options/freeswitch-users [54] http://www.freeswitch.org [55] mailto:FreeSWITCH-users@lists.freeswitch.org [56] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [57] http://lists.freeswitch.org/mailman/options/freeswitch-users [58] http://www.freeswitch.org [59] http://www.freeswitch.org/ [60] http://www.cluecon.com/ [61] http://twitter.com/FreeSWITCH_wire [62] mailto:MSN%3Aanthony_minessale@hotmail.com [63] mailto:PAYPAL%3Aanthony.minessale@gmail.com [64] http://irc.freenode.net [65] mailto:sip%3A888@conference.freeswitch.org [66] http://iax:guest@conference.freeswitch.org/888 [67] mailto:googletalk%3Aconf%2B888@conference.freeswitch.org [68] mailto:FreeSWITCH-users@lists.freeswitch.org [69] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [70] http://lists.freeswitch.org/mailman/options/freeswitch-users [71] http://www.freeswitch.org [72] mailto:FreeSWITCH-users@lists.freeswitch.org [73] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [74] http://lists.freeswitch.org/mailman/options/freeswitch-users [75] http://www.freeswitch.org [76] http://www.freeswitch.org/ [77] http://www.cluecon.com/ [78] http://twitter.com/FreeSWITCH_wire [79] mailto:MSN%3Aanthony_minessale@hotmail.com [80] mailto:PAYPAL%3Aanthony.minessale@gmail.com [81] http://irc.freenode.net [82] mailto:sip%3A888@conference.freeswitch.org [83] http://iax:guest@conference.freeswitch.org/888 [84] mailto:googletalk%3Aconf%2B888@conference.freeswitch.org
I tried also with sudo and freeswitch user in sudoers with the same result, segmentation fault. Anyway my patch works perfectly now, even with sendmail (the only difference without patch is the "From" is taken from the voicemail.tpl and not the user variable) ----- Original Message ----- From: François Legal To: freeswitch-users@lists.freeswitch.org Sent: Friday, March 19, 2010 6:51 AM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] Actually, I do not seem to have the same problem. I don't get the broken pipe error, nor do I get any error in FS log or console (the error message in log disappeared after some upgrade but I don't remember which). However, what I can tell is that I get the problem as root AND as non root. I can also tell that sending the exact same message with the exact same command line as my freeswitch user work (sudo -u freeswitch cat savedmail | sendmail -f freeswitch@mydomain -t some.user@mydomain). This does not seem to be an environment problem either (I could not seem significant differences between the 2). I'm about to strace what happens too. François On Thu, 18 Mar 2010 17:24:41 -0400, "Madovsky" <infos@madovsky.org> wrote: Ok, I read that there are some guys who had the same problem here. I run FS as root, but sendmail as chroot smmsp user. You're right maybe it's a thread child problem. I saw there is a windows condition already in your code ? and for mac it should work since ssmtp is in standard in all package, even for solaris and hp-ux. I will experiment with strace tonight or tomorrow ----- Original Message ----- From: Anthony Minessale To: freeswitch-users@lists.freeswitch.org Sent: Thursday, March 18, 2010 4:10 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] The dilemma is we also need solution that is compat with windows, bsd, mac etc. That is sort of interesting that the pipe is breaking, it would be nice to figure out why since not everybody seems to have it. I am still wondering if it's a stack size running out issue in the child thread from system. Are you running FS as root or as a non-privileged user, i'm wondering because maybe if its a regular user, its not able to increase the stack size up to 8megs maybe you can push in strace into the command so it will show why it breaks. On Thu, Mar 18, 2010 at 1:10 PM, Madovsky <infos@madovsky.org> wrote: Also no need to uninstall sendmail, just install ssmtp and that's it ! ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Thursday, March 18, 2010 1:59 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] Hi Anthony, after 5 days of tests to resolve the hell of sendmail segmentation fault, my conclusion is there is definitely a problem with the combination of cat, pipe and sendmail or other mail app. I made a php script that fits the actual switch_utils.c exec, but it's the same, it works one time on 10. So the robustest solution is to replace sendmail by ssmtp (yum install ssmtp or apt-get ssmtp etc...) configure /etc/ssmtp/revaliases and /etc/ssmtp/ssmtp.conf, change the switch.conf.xml like this and apply the patch attached (no choice since it needs filename as argument and not STDIN). hope it will help people who have sendmail segmentation fault problem. Regards Franck ----- Original Message ----- From: Anthony Minessale To: freeswitch-users@lists.freeswitch.org Sent: Wednesday, March 17, 2010 4:37 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] FYI if you made the change in your working copy you could generate a patch with svn diff > patch.txt After looking at your change, the problem is that many people depend on this working the way it currently is. Would you consider making a script that mimics the current behavior of a mailer app and read the file from stdin and deliver the subsequent file so it is backwards-compatible with the way everything already works? On Wed, Mar 17, 2010 at 3:26 PM, Madovsky <infos@madovsky.org> wrote: Sorry Anthony I never made an official update in C language with diff patch so the change is at the line 620, I commented out the original line ----- Original Message ----- From: Anthony Minessale To: freeswitch-users@lists.freeswitch.org Sent: Wednesday, March 17, 2010 3:55 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] could you get a svn diff of the switch_utils.c so we can see what the change was? On Wed, Mar 17, 2010 at 2:46 PM, Madovsky <infos@madovsky.org> wrote: Finally I succeed to send voicemail with sendmail through a little php script (could be Perl also) it seems that sendmail 8.14.3 has a bug. But call it from PHP the bug doesn't exist. I attached my php script and switch_utils.c. Not sure if the FS developers will accept my modification Regards Franck ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Tuesday, March 16, 2010 4:35 PM Subject: Re: [Freeswitch-users] voicemail options ok, I tried 50 times to leave a message, it worked only one time. It seems that sendmail needs to be free to send the email.... ----- Original Message ----- From: devel@thom.fr.eu.org To: freeswitch-users@lists.freeswitch.org Sent: Tuesday, March 16, 2010 3:59 PM Subject: Re: [Freeswitch-users] voicemail options Are you running debian, I have the same problem on debian x64 (already mentioned here http://lists.freeswitch.org/pipermail/freeswitch-users/2010-January/024733.h...) and cannot fix it. I don’t know if it’s a priviledge problem, as I got the same results running FS with or without –u. François De : freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] De la part de Anthony Minessale Envoyé : mardi 16 mars 2010 20:30 À : freeswitch-users@lists.freeswitch.org Objet : Re: [Freeswitch-users] voicemail options are you running FS as root or a regular user? maybe there is a permission or resource limitation problem preventing it from getting the larger stack space necessary? On Tue, Mar 16, 2010 at 2:18 PM, Madovsky <infos@madovsky.org> wrote: I noticed that sendmail makes a segfault when FS is trying to send email and sendmail has some emails locked in folder queue.... Regards Franck _______________________________________________ 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 http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 ------------------------------------------------------------ _______________________________________________ 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 http://www.freeswitch.org _______________________________________________ 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 http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 ------------------------------------------------------------------ _______________________________________________ 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 http://www.freeswitch.org _______________________________________________ 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 http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 ---------------------------------------------------------------------- _______________________________________________ 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 http://www.freeswitch.org _______________________________________________ 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 http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 -------------------------------------------------------------------------- _______________________________________________ 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 http://www.freeswitch.org ------------------------------------------------------------------------------ _______________________________________________ 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 http://www.freeswitch.org
I think the problem is that fs sets the stack size for the core and new threads to 240k so when the child is born from system() the new process inherits the small stack size and sendmail needs more than 240k If you are root, it has the priveledge to raise the stack size to the default size of 8m and sets it back down when the command completes. If you are not root you lack these privs and the stack size remains small. This has been a long time problem how to make a solution that is cross platform and will not break working configurations. On Mar 19, 2010 6:47 AM, "Madovsky" <infos@madovsky.org> wrote: I tried also with sudo and freeswitch user in sudoers with the same result, segmentation fault. Anyway my patch works perfectly now, even with sendmail (the only difference without patch is the "From" is taken from the voicemail.tpl and not the user variable)
----- Original Message ----- From: François Legal To: freeswitch-users@lists.freeswitch.org
Sent: Friday, March 19, 2010 6:51 AM Subject: Re: [Freeswitch-users] voicemail options [tempora...
_______________________________________________ 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 http://www.freeswitch.org ...
Ok I undertand. buy Why to continue to use pipe and STDIN since to use "filename" path works ? ----- Original Message ----- From: Anthony Minessale To: freeswitch-users@lists.freeswitch.org Sent: Saturday, March 20, 2010 12:12 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] I think the problem is that fs sets the stack size for the core and new threads to 240k so when the child is born from system() the new process inherits the small stack size and sendmail needs more than 240k If you are root, it has the priveledge to raise the stack size to the default size of 8m and sets it back down when the command completes. If you are not root you lack these privs and the stack size remains small. This has been a long time problem how to make a solution that is cross platform and will not break working configurations. On Mar 19, 2010 6:47 AM, "Madovsky" <infos@madovsky.org> wrote: I tried also with sudo and freeswitch user in sudoers with the same result, segmentation fault. Anyway my patch works perfectly now, even with sendmail (the only difference without patch is the "From" is taken from the voicemail.tpl and not the user variable) > > ----- Original Message ----- > From: François Legal > To: freeswitch-users@lists.freeswitch.org > Sent: Friday, March 19, 2010 6:51 AM > Subject: Re: [Freeswitch-users] voicemail options [tempora... _______________________________________________ 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 http://www.freeswitch.org ... ------------------------------------------------------------------------------ _______________________________________________ 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 http://www.freeswitch.org
I am willing to change anything we have to as long as it works on all platforms and we can give proper warnings to others. Maybe we will do something like another param to say if your mailer app needs a pipe or can accept the filename so we can do both and leave the defaults to the current way. Maybe we can also have another option to make a simple relay code internally that can deliver the file to a mail relay if you set that option. On Sat, Mar 20, 2010 at 11:47 AM, Madovsky <infos@madovsky.org> wrote:
Ok I undertand. buy Why to continue to use pipe and STDIN since to use "filename" path works ?
----- Original Message ----- *From:* Anthony Minessale <anthony.minessale@gmail.com> *To:* freeswitch-users@lists.freeswitch.org *Sent:* Saturday, March 20, 2010 12:12 PM *Subject:* Re: [Freeswitch-users] voicemail options [temporarly solved]
I think the problem is that fs sets the stack size for the core and new threads to 240k so when the child is born from system() the new process inherits the small stack size and sendmail needs more than 240k
If you are root, it has the priveledge to raise the stack size to the default size of 8m and sets it back down when the command completes.
If you are not root you lack these privs and the stack size remains small.
This has been a long time problem how to make a solution that is cross platform and will not break working configurations.
On Mar 19, 2010 6:47 AM, "Madovsky" <infos@madovsky.org> wrote:
I tried also with sudo and freeswitch user in sudoers with the same result, segmentation fault. Anyway my patch works perfectly now, even with sendmail (the only difference without patch is the "From" is taken from the voicemail.tpl and not the user variable)
----- Original Message ----- From: François Legal To: freeswitch-users@lists.freeswitch.org
Sent: Friday, March 19, 2010 6:51 AM Subject: Re: [Freeswitch-users] voicemail options [tempora...
_______________________________________________ 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 http://www.freeswitch.org
...
------------------------------
_______________________________________________ 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 http://www.freeswitch.org
_______________________________________________ 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 http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
ok irght. So for now I will continue to use my patch to make it work. I will give to you the status of any system upgrade that resolves the problem ----- Original Message ----- From: Anthony Minessale To: freeswitch-users@lists.freeswitch.org Sent: Saturday, March 20, 2010 12:58 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] I am willing to change anything we have to as long as it works on all platforms and we can give proper warnings to others. Maybe we will do something like another param to say if your mailer app needs a pipe or can accept the filename so we can do both and leave the defaults to the current way. Maybe we can also have another option to make a simple relay code internally that can deliver the file to a mail relay if you set that option. On Sat, Mar 20, 2010 at 11:47 AM, Madovsky <infos@madovsky.org> wrote: Ok I undertand. buy Why to continue to use pipe and STDIN since to use "filename" path works ? ----- Original Message ----- From: Anthony Minessale To: freeswitch-users@lists.freeswitch.org Sent: Saturday, March 20, 2010 12:12 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] I think the problem is that fs sets the stack size for the core and new threads to 240k so when the child is born from system() the new process inherits the small stack size and sendmail needs more than 240k If you are root, it has the priveledge to raise the stack size to the default size of 8m and sets it back down when the command completes. If you are not root you lack these privs and the stack size remains small. This has been a long time problem how to make a solution that is cross platform and will not break working configurations. On Mar 19, 2010 6:47 AM, "Madovsky" <infos@madovsky.org> wrote: I tried also with sudo and freeswitch user in sudoers with the same result, segmentation fault. Anyway my patch works perfectly now, even with sendmail (the only difference without patch is the "From" is taken from the voicemail.tpl and not the user variable) > > ----- Original Message ----- > From: François Legal > To: freeswitch-users@lists.freeswitch.org > Sent: Friday, March 19, 2010 6:51 AM > Subject: Re: [Freeswitch-users] voicemail options [tempora... _______________________________________________ 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 http://www.freeswitch.org ... -------------------------------------------------------------------------- _______________________________________________ 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 http://www.freeswitch.org _______________________________________________ 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 http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 ------------------------------------------------------------------------------ _______________________________________________ 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 http://www.freeswitch.org
So I did continue to track that problem. I found that when running sendmail from freeswitch, it seems that the setgid bit on sendmail is not honored (I get messages like sendmail[13534]: NOQUEUE: SYSERR(freeswitch): can not chdir(/var/spool/mqueue-client/): Permission denied or NOQUEUE: SYSERR(UID101): can not wri te to queue directory /var/spool/mqueue-client/ (RunAsGid=102, required=107): Pe rmission denied when I gave freeswitch the permission on /var/spool/mqueue-client). In any case that ends up to sendmail segfault, maybe due to a stack problem. I could solve this by installing msmtp (it can live aside sendmail without breaking my messaging setup, at least on debian) François De : freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] De la part de Madovsky Envoyé : samedi 20 mars 2010 18:13 À : freeswitch-users@lists.freeswitch.org Objet : Re: [Freeswitch-users] voicemail options [temporarly solved] ok irght. So for now I will continue to use my patch to make it work. I will give to you the status of any system upgrade that resolves the problem ----- Original Message ----- From: Anthony Minessale <mailto:anthony.minessale@gmail.com> To: freeswitch-users@lists.freeswitch.org Sent: Saturday, March 20, 2010 12:58 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] I am willing to change anything we have to as long as it works on all platforms and we can give proper warnings to others. Maybe we will do something like another param to say if your mailer app needs a pipe or can accept the filename so we can do both and leave the defaults to the current way. Maybe we can also have another option to make a simple relay code internally that can deliver the file to a mail relay if you set that option. On Sat, Mar 20, 2010 at 11:47 AM, Madovsky <infos@madovsky.org> wrote: Ok I undertand. buy Why to continue to use pipe and STDIN since to use "filename" path works ? ----- Original Message ----- From: Anthony Minessale <mailto:anthony.minessale@gmail.com> To: freeswitch-users@lists.freeswitch.org Sent: Saturday, March 20, 2010 12:12 PM Subject: Re: [Freeswitch-users] voicemail options [temporarly solved] I think the problem is that fs sets the stack size for the core and new threads to 240k so when the child is born from system() the new process inherits the small stack size and sendmail needs more than 240k If you are root, it has the priveledge to raise the stack size to the default size of 8m and sets it back down when the command completes. If you are not root you lack these privs and the stack size remains small. This has been a long time problem how to make a solution that is cross platform and will not break working configurations. On Mar 19, 2010 6:47 AM, "Madovsky" <infos@madovsky.org> wrote: I tried also with sudo and freeswitch user in sudoers with the same result, segmentation fault. Anyway my patch works perfectly now, even with sendmail (the only difference without patch is the "From" is taken from the voicemail.tpl and not the user variable)
----- Original Message ----- From: François Legal To: freeswitch-users@lists.freeswitch.org
Sent: Friday, March 19, 2010 6:51 AM Subject: Re: [Freeswitch-users] voicemail options [tempora...
_______________________________________________ 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 http://www.freeswitch.org ... _____ _______________________________________________ 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 http://www.freeswitch.org _______________________________________________ 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 http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900 _____ _______________________________________________ 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 http://www.freeswitch.org
lets open a jira about it as a reminder. we will figure out what to do there and come up with something. On Tue, Mar 23, 2010 at 5:09 PM, <devel@thom.fr.eu.org> wrote:
So I did continue to track that problem.
I found that when running sendmail from freeswitch, it seems that the setgid bit on sendmail is not honored (I get messages like sendmail[13534]: NOQUEUE: SYSERR(freeswitch): can not
chdir(/var/spool/mqueue-client/): Permission denied or NOQUEUE: SYSERR(UID101): can not wri
te to queue directory /var/spool/mqueue-client/ (RunAsGid=102, required=107): Pe
rmission denied when I gave freeswitch the permission on /var/spool/mqueue-client).
In any case that ends up to sendmail segfault, maybe due to a stack problem.
I could solve this by installing msmtp (it can live aside sendmail without breaking my messaging setup, at least on debian)
François
*De :* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *De la part de* Madovsky *Envoyé :* samedi 20 mars 2010 18:13 *À :* freeswitch-users@lists.freeswitch.org *Objet :* Re: [Freeswitch-users] voicemail options [temporarly solved]
ok irght.
So for now I will continue to use my patch to make it work.
I will give to you the status of any system upgrade that resolves the problem
----- Original Message -----
*From:* Anthony Minessale <anthony.minessale@gmail.com>
*To:* freeswitch-users@lists.freeswitch.org
*Sent:* Saturday, March 20, 2010 12:58 PM
*Subject:* Re: [Freeswitch-users] voicemail options [temporarly solved]
I am willing to change anything we have to as long as it works on all platforms and we can give proper warnings to others. Maybe we will do something like another param to say if your mailer app needs a pipe or can accept the filename so we can do both and leave the defaults to the current way.
Maybe we can also have another option to make a simple relay code internally that can deliver the file to a mail relay if you set that option.
On Sat, Mar 20, 2010 at 11:47 AM, Madovsky <infos@madovsky.org> wrote:
Ok I undertand.
buy Why to continue to use pipe and STDIN since to use "filename" path works ?
----- Original Message -----
*From:* Anthony Minessale <anthony.minessale@gmail.com>
*To:* freeswitch-users@lists.freeswitch.org
*Sent:* Saturday, March 20, 2010 12:12 PM
*Subject:* Re: [Freeswitch-users] voicemail options [temporarly solved]
I think the problem is that fs sets the stack size for the core and new threads to 240k so when the child is born from system() the new process inherits the small stack size and sendmail needs more than 240k
If you are root, it has the priveledge to raise the stack size to the default size of 8m and sets it back down when the command completes.
If you are not root you lack these privs and the stack size remains small.
This has been a long time problem how to make a solution that is cross platform and will not break working configurations.
On Mar 19, 2010 6:47 AM, "Madovsky" <infos@madovsky.org> wrote:
I tried also with sudo and freeswitch user in sudoers with the same result, segmentation fault.
Anyway my patch works perfectly now, even with sendmail (the only difference without patch is the "From" is taken from the voicemail.tpl and not the user variable)
----- Original Message ----- From: François Legal To: freeswitch-users@lists.freeswitch.org
Sent: Friday, March 19, 2010 6:51 AM Subject: Re: [Freeswitch-users] voicemail options [tempora...
_______________________________________________ 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 http://www.freeswitch.org
...
------------------------------
_______________________________________________ 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 http://www.freeswitch.org
_______________________________________________ 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 http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900 ------------------------------
_______________________________________________ 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 http://www.freeswitch.org
_______________________________________________ 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 http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
After update the most recent version , voice mail to email stop working. Here is the FreeSWITCH Environment CentOS 5.4 FreeSWITCH freeswitch@internal> version FreeSWITCH Version 1.0.trunk (17152) Exim --- Initially there is a sendmail problem then I start to using the Exim . Now Exim also stop working. What is the reliable method to deliver the Voice mail to Email. Thanks in advance. Lloyd On Tue, Mar 23, 2010 at 6:29 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
lets open a jira about it as a reminder. we will figure out what to do there and come up with something.
On Tue, Mar 23, 2010 at 5:09 PM, <devel@thom.fr.eu.org> wrote:
So I did continue to track that problem.
I found that when running sendmail from freeswitch, it seems that the setgid bit on sendmail is not honored (I get messages like sendmail[13534]: NOQUEUE: SYSERR(freeswitch): can not
chdir(/var/spool/mqueue-client/): Permission denied or NOQUEUE: SYSERR(UID101): can not wri
te to queue directory /var/spool/mqueue-client/ (RunAsGid=102, required=107): Pe
rmission denied when I gave freeswitch the permission on /var/spool/mqueue-client).
In any case that ends up to sendmail segfault, maybe due to a stack problem.
I could solve this by installing msmtp (it can live aside sendmail without breaking my messaging setup, at least on debian)
François
*De :* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *De la part de* Madovsky *Envoyé :* samedi 20 mars 2010 18:13 *À :* freeswitch-users@lists.freeswitch.org *Objet :* Re: [Freeswitch-users] voicemail options [temporarly solved]
ok irght.
So for now I will continue to use my patch to make it work.
I will give to you the status of any system upgrade that resolves the problem
----- Original Message -----
*From:* Anthony Minessale <anthony.minessale@gmail.com>
*To:* freeswitch-users@lists.freeswitch.org
*Sent:* Saturday, March 20, 2010 12:58 PM
*Subject:* Re: [Freeswitch-users] voicemail options [temporarly solved]
I am willing to change anything we have to as long as it works on all platforms and we can give proper warnings to others. Maybe we will do something like another param to say if your mailer app needs a pipe or can accept the filename so we can do both and leave the defaults to the current way.
Maybe we can also have another option to make a simple relay code internally that can deliver the file to a mail relay if you set that option.
On Sat, Mar 20, 2010 at 11:47 AM, Madovsky <infos@madovsky.org> wrote:
Ok I undertand.
buy Why to continue to use pipe and STDIN since to use "filename" path works ?
----- Original Message -----
*From:* Anthony Minessale <anthony.minessale@gmail.com>
*To:* freeswitch-users@lists.freeswitch.org
*Sent:* Saturday, March 20, 2010 12:12 PM
*Subject:* Re: [Freeswitch-users] voicemail options [temporarly solved]
I think the problem is that fs sets the stack size for the core and new threads to 240k so when the child is born from system() the new process inherits the small stack size and sendmail needs more than 240k
If you are root, it has the priveledge to raise the stack size to the default size of 8m and sets it back down when the command completes.
If you are not root you lack these privs and the stack size remains small.
This has been a long time problem how to make a solution that is cross platform and will not break working configurations.
On Mar 19, 2010 6:47 AM, "Madovsky" <infos@madovsky.org> wrote:
I tried also with sudo and freeswitch user in sudoers with the same result, segmentation fault.
Anyway my patch works perfectly now, even with sendmail (the only difference without patch is the "From" is taken from the voicemail.tpl and not the user variable)
----- Original Message ----- From: François Legal To: freeswitch-users@lists.freeswitch.org
Sent: Friday, March 19, 2010 6:51 AM Subject: Re: [Freeswitch-users] voicemail options [tempora...
_______________________________________________ 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 http://www.freeswitch.org
...
------------------------------
_______________________________________________ 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 http://www.freeswitch.org
_______________________________________________ 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 http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900 ------------------------------
_______________________________________________ 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 http://www.freeswitch.org
_______________________________________________ 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 http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
_______________________________________________ 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 http://www.freeswitch.org
participants (5)
-
Aloysius Lloyd
-
Anthony Minessale
-
devel@thom.fr.eu.org
-
François Legal
-
Madovsky