[Freeswitch-users] Lua Script Does Not Get Executed

Denis Papes shishko69 at gmail.com
Fri Jun 3 10:23:06 MSD 2016


First check if user under which FreeSWITCH is running has permissions to
access /home/danieln/, then check if /home/danieln/checkVoicemails2 has
exec permission (if not, chmod +x /home/danieln/checkVoicemails2).


On Thu, Jun 2, 2016 at 11:37 PM Cody Rosenbloom <cody.rosenbloom at gmail.com>
wrote:

> Hi,
>
> I am very new to freeswitch and Lua. I'm trying to get a lua script which
> I've set up to send voicemails but as far as I can tell, the script is
> never even executed. This is the basic sequence of events.
>
> -> Caller leaves a voicemail. This is stored on the server, no problem.
> ->After voicemail is stored, I call a lua script passing the email id of
> the user and his extension
> ->The os.execute command within the script passes these values to a simple
> shell script which grabs the voicemail audio file, logs some debug output
> to an output file so I can verify its been run and then sends me an email.
> When I test the script from fs_cli console using
>
> lua <scriptName> <args> , it works fine and I see the debug output logged.
> When I actually call and leave a voicemail, this does not happen. Can
> someone point out what I'm doing wrong ?
>
> My xml and lua script are pasted at http://pastebin.com/2N6LcfuV
>
> Thank you very much!
>
> Cody
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 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/20160603/ef83338d/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list