[Freeswitch-users] Record call in LUA
Michael Collins
msc at freeswitch.org
Thu Jul 12 00:54:14 MSD 2012
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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.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 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/20120711/b7616f00/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list