Is this Lua script called from the dialplan? If so you want to be using the session object and session:recordFile:<br><a href="http://wiki.freeswitch.org/wiki/Lua#session:recordFile">http://wiki.freeswitch.org/wiki/Lua#session:recordFile</a><br>
<br>If it&#39;s being called from outside the dialplan then you&#39;ll need to use the uuid_record API:<br><a href="http://wiki.freeswitch.org/wiki/Mod_commands#uuid_record">http://wiki.freeswitch.org/wiki/Mod_commands#uuid_record</a><br>
<br>-MC<br><br><div class="gmail_quote">On Wed, Jul 11, 2012 at 1:06 PM, BF <span dir="ltr">&lt;<a href="mailto:bfmtl@hotmail.com" target="_blank">bfmtl@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I can&#39;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.<br>
<br>
api = freeswitch.API();<br>
api:execute(&quot;record_session&quot;,call_recording_path..call_id..&quot;.mp3&quot;);<br>
<br>
<br>
2012-07-11 15:59:59.553048 [DEBUG] switch_cpp.cpp:1227 record_session /mydir/fc157da2-cb92-11e1-b8ad-65e540468340.mp3<br>
<br>
The &quot;mydir&quot; directory is in 777 privilege access mode.<br>
<br>
Any thought anyone?<br>
<br>
Thank you.<br>
<br>
Bernard<br>
<br>
<br>
<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>