<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I updated the wiki mod_voicemail page a few days ago with some
    instructions for debugging email from freeswitch.&nbsp; Have you tried
    those?<br>
    <br>
    On 07/02/12 13:47, Balamurugan Mahendran wrote:
    <blockquote
cite="mid:CAP2fbbeD0n3T2DAEFBpDuVdfKi-6Zqv5qH+M5GwjL9G--5gpag@mail.gmail.com"
      type="cite">All,
      <div><br>
      </div>
      <div>I am having the same issue, its not sending email(extension
        --&gt; lua script) getting <b>"Segmentation fault"</b></div>
      <div><br>
      </div>
      <div>xml :</div>
      <div><br>
      </div>
      <div>
        <div>&lt;include&gt;</div>
        <div>&nbsp; &lt;user id="503"&gt;</div>
        <div>&nbsp; &nbsp; &lt;params&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &lt;param name="password" value="1234"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &lt;param name="vm-password" value="503"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &lt;param name="vm-mailto" value="<a
            moz-do-not-send="true" href="mailto:b2m@a-cti.com"
            target="_blank">b2m@a-cti.com</a>"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &lt;param name="vm-enabled" value="true"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;param name="vm-skip-instructions"
          value="true"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;param name="vm-disk-quota" value="3600"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;param name="vm-email-all-messages"
          value="true"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;param name="max-login-attempts" value="2"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;param name="digit-timeout" value="10000"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;param name="max-record-len" value="900"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;param name="tone-spec" value="%(1000, 0,
          640)"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;param name="record-silence-threshold"
          value="2000"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;param name="record-silence-hits" value="3"/&gt;</div>
        <div>&nbsp; &nbsp; &lt;/params&gt;</div>
        <div>
          &nbsp; &nbsp; &lt;variables&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &lt;variable name="toll_allow"
          value="domestic,international,local"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &lt;variable name="accountcode" value="503"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &lt;variable name="user_context" value="default"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &lt;variable name="effective_caller_id_name"
          value="Extension 503"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &lt;variable name="effective_caller_id_number"
          value="503"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &lt;variable name="outbound_caller_id_name"
          value="$${outbound_caller_name}"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &lt;variable name="outbound_caller_id_number"
          value="$${outbound_caller_id}"/&gt;</div>
        <div>&nbsp; &nbsp; &nbsp; &lt;variable name="callgroup"
          value="techsupport"/&gt;</div>
        <div>&nbsp; &nbsp; &lt;/variables&gt;</div>
        <div>&nbsp; &lt;/user&gt;</div>
        <div>&lt;/include&gt;</div>
        <div><br>
        </div>
        <div>dialplan :</div>
        <div><br>
        </div>
        <div>
          <div>&lt;include&gt;</div>
          <div>&nbsp; &lt;extension name="503"&gt;</div>
          <div>&nbsp; &nbsp; &lt;condition field="destination_number"
            expression="^(503)$"&gt;</div>
          <div>&nbsp; &nbsp; &nbsp; &lt;action application="lua" data="vmbox.lua
            ${effective_caller_id_number}"/&gt;</div>
          <div>&nbsp; &nbsp; &lt;/condition&gt;</div>
          <div>&nbsp; &lt;/extension&gt;</div>
          <div>&lt;/include&gt;</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Lua :</div>
        <div><br>
        </div>
        <div>
          <div>caller=503;</div>
          <div>freeswitch.consoleLog("info","From :"..caller);</div>
          <div>session:set_tts_parms("flite", "slt");</div>
          <div>session:speak("Welcome To Voice Mail !. &nbsp;You Can Leave
            Your Message Here.");</div>
          <div>path="/usr/local/freeswitch/recordings/";</div>
          <div>prompt=caller..".mp3";</div>
          <div>recpath=path..prompt;</div>
          <div>freeswitch.consoleLog("info","record path="..recpath);</div>
          <div>session:recordFile(recpath,30,10,10);</div>
          <div>session:speak("Thank you.");</div>
          <div><br>
          </div>
          <div>freeswitch.consoleLog("info","testing");</div>
          <div>freeswitch.email("<a moz-do-not-send="true"
              href="mailto:b2m@a-cti.com" target="_blank">b2m@a-cti.com</a>",</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"<a moz-do-not-send="true"
              href="mailto:saraswathi.devaraj@a-cti.com" target="_blank">saraswathi.devaraj@a-cti.com</a>",</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"subject: Voicemail from 801\n",</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"Hello,\n\nYou've got a voicemail, click
            the attachment to listen to it.",</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &nbsp;"/usr/local/freeswitch/recordings/503.mp3",</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"",</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"");</div>
          <div>freeswitch.consoleLog("info","hai");</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>switchconf :&nbsp;</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <div>&lt;param name="mailer-app"
            value="/usr/sbin/sendmail"/&gt;</div>
          <div>&nbsp; &nbsp; &lt;param name="mailer-app-args" value="-t"/&gt;</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Thanks for your help!!</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Bala</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <br>
        <div class="gmail_quote">On Sat, Feb 4, 2012 at 12:31 AM, John <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:freeswitch@earthspike.net" target="_blank">freeswitch@earthspike.net</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">On
            03/02/12 18:00, Thomas Hoellriegel wrote:<br>
            &gt;<br>
            &gt; Its works fine!!<br>
            Good news!<br>
            <div>
              <div></div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>