Michael, uuid_record works. Thanks. Bernard On Jul 11, 2012, at 4:54 PM, Michael Collins wrote:
Is this Lua script called from the dialplan? If so you want to be using the session object and session:recordFile: http://wiki.freeswitch.org/wiki/Lua#session:recordFile
If it's being called from outside the dialplan then you'll need to use the uuid_record API: http://wiki.freeswitch.org/wiki/Mod_commands#uuid_record
-MC
On Wed, Jul 11, 2012 at 1:06 PM, BF <bfmtl@hotmail.com> wrote: Hello,
I can't find how to record a call from a LUA script. DEBUG shows no error but file is not created. Snippets of my LUA script and FS console log are provide below.
api = freeswitch.API(); api:execute("record_session",call_recording_path..call_id..".mp3");
2012-07-11 15:59:59.553048 [DEBUG] switch_cpp.cpp:1227 record_session /mydir/fc157da2-cb92-11e1-b8ad-65e540468340.mp3
The "mydir" directory is in 777 privilege access mode.
Any thought anyone?
Thank you.
Bernard
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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