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
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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Cody Rosenbloom
-
Denis Papes