<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Michael, &nbsp;<div><br></div><div>uuid_record works.&nbsp;<div><br></div><div>Thanks.</div><div><br></div><div>Bernard</div><div><br><div><div>On Jul 11, 2012, at 4:54 PM, Michael Collins wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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's being called from outside the dialplan then you'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'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("record_session",call_recording_path..call_id..".mp3");<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 "mydir" 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>
_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>http://www.freeswitchsolutions.com<br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>http://www.cudatel.com<br><br>Official FreeSWITCH Sites<br>http://www.freeswitch.org<br>http://wiki.freeswitch.org<br>http://www.cluecon.com<br><br>Join Us At ClueCon - Aug 7-9, 2012<br><br>FreeSWITCH-users mailing list<br>FreeSWITCH-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></div></body></html>