[Freeswitch-users] Record call in LUA
Bernard Fluixa
fluixab at bellsouth.net
Thu Jul 12 01:56:11 MSD 2012
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 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
>
> _________________________________________________________________________
> 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/969b108c/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list