[Freeswitch-users] voicemail options [temporarly solved]

Madovsky infos at madovsky.org
Thu Mar 18 14:24:41 PDT 2010


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 at 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 at madovsky.org> wrote:

    Also no need to uninstall sendmail, just install ssmtp and that's it !
      ----- Original Message ----- 
      From: Madovsky 
      To: freeswitch-users at 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 at 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 at 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 at 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 at 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 at 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 at thom.fr.eu.org 
                To: freeswitch-users at 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.html) 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 at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] De la part de Anthony Minessale
                Envoyé : mardi 16 mars 2010 20:30
                À : freeswitch-users at 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 at 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 at 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 at hotmail.com
                GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
                IRC: irc.freenode.net #freeswitch

                FreeSWITCH Developer Conference
                sip:888 at conference.freeswitch.org
                iax:guest at conference.freeswitch.org/888
                googletalk:conf+888 at conference.freeswitch.org
                pstn:+19193869900



----------------------------------------------------------------


                _______________________________________________
                FreeSWITCH-users mailing list
                FreeSWITCH-users at 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 at 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 at hotmail.com
          GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
          IRC: irc.freenode.net #freeswitch

          FreeSWITCH Developer Conference
          sip:888 at conference.freeswitch.org
          iax:guest at conference.freeswitch.org/888
          googletalk:conf+888 at conference.freeswitch.org
          pstn:+19193869900



----------------------------------------------------------------------


          _______________________________________________
          FreeSWITCH-users mailing list
          FreeSWITCH-users at 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 at 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 at hotmail.com
      GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
      IRC: irc.freenode.net #freeswitch

      FreeSWITCH Developer Conference
      sip:888 at conference.freeswitch.org
      iax:guest at conference.freeswitch.org/888
      googletalk:conf+888 at conference.freeswitch.org
      pstn:+19193869900



--------------------------------------------------------------------------


      _______________________________________________
      FreeSWITCH-users mailing list
      FreeSWITCH-users at 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 at 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 at hotmail.com
  GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
  IRC: irc.freenode.net #freeswitch

  FreeSWITCH Developer Conference
  sip:888 at conference.freeswitch.org
  iax:guest at conference.freeswitch.org/888
  googletalk:conf+888 at conference.freeswitch.org
  pstn:+19193869900



------------------------------------------------------------------------------


  _______________________________________________
  FreeSWITCH-users mailing list
  FreeSWITCH-users at lists.freeswitch.org
  http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
  UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
  http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100318/847e3aa0/attachment-0002.html 


More information about the FreeSWITCH-users mailing list