I am having the same issue, its not sending email(extension --> lua script) getting "Segmentation fault"
<include>
<user id="503">
<params>
<param name="password" value="1234"/>
<param name="vm-password" value="503"/>
<param name="vm-enabled" value="true"/>
<param name="vm-skip-instructions" value="true"/>
<param name="vm-disk-quota" value="3600"/>
<param name="vm-email-all-messages" value="true"/>
<param name="max-login-attempts" value="2"/>
<param name="digit-timeout" value="10000"/>
<param name="max-record-len" value="900"/>
<param name="tone-spec" value="%(1000, 0, 640)"/>
<param name="record-silence-threshold" value="2000"/>
<param name="record-silence-hits" value="3"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="503"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Extension 503"/>
<variable name="effective_caller_id_number" value="503"/>
<variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>
</include>
dialplan :
<include>
<extension name="503">
<condition field="destination_number" expression="^(503)$">
<action application="lua" data="vmbox.lua ${effective_caller_id_number}"/>
</condition>
</extension>
</include>
Lua :
caller=503;
freeswitch.consoleLog("info","From :"..caller);
session:set_tts_parms("flite", "slt");
session:speak("Welcome To Voice Mail !. You Can Leave Your Message Here.");
path="/usr/local/freeswitch/recordings/";
prompt=caller..".mp3";
recpath=path..prompt;
freeswitch.consoleLog("info","record path="..recpath);
session:recordFile(recpath,30,10,10);
session:speak("Thank you.");
freeswitch.consoleLog("info","testing");
"subject: Voicemail from 801\n",
"Hello,\n\nYou've got a voicemail, click the attachment to listen to it.",
"/usr/local/freeswitch/recordings/503.mp3",
"",
"");
freeswitch.consoleLog("info","hai");
switchconf :
<param name="mailer-app" value="/usr/sbin/sendmail"/>
<param name="mailer-app-args" value="-t"/>
Thanks for your help!!
Thanks,
Bala
On Sat, Feb 4, 2012 at 12:31 AM, John
<freeswitch@earthspike.net> wrote:
On 03/02/12 18:00, Thomas Hoellriegel wrote:
>
> Its works fine!!
Good news!