[Freeswitch-users] LUA FS's API function "freeswitch.email" do not work

Dmitry Saratsky simpot at simpot.com
Fri Mar 4 20:24:43 MSK 2011


Hi all,

According to: http://wiki.freeswitch.org/wiki/Lua#freeswitch.email
I should successfully send emails from within FS with following script:
19:19 fs:/usr/local/freeswitch/scripts# cat test.lua
freeswitch.email("user at domain.com",
                 "user at domain.com",
                 "subject: Voicemail from 1234\n",
                 "Hello,\n\nYou've got a voicemail, click the attachment to listen to it.")
19:19 fs:/usr/local/freeswitch/scripts#

When I run script, I can see in console:
freeswitch at default> lua test.lua
-ERR no reply

2011-03-04 19:20:46.783430 [DEBUG] switch_utils.c:709 Emailed data to [user at domain.com]
freeswitch at default>

I have the following configured in my autoload_configs/switch.conf.xml:
    <param name="mailer-app" value="sendmail"/>
    <param name="mailer-app-args" value="-t"/>

However nothing passed to sendmail... it is no records in /var/log/maillog.

I run:
CentOS release 5.5 (Final)
FreeSWITCH Version 1.0.head (git-53fc3f7 2011-02-28 12-43-05 -0600)

Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110304/b5a5418e/attachment-0001.html 


More information about the FreeSWITCH-users mailing list