<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The proper prototype is file_name time_limit silence_threshold silence_hits<div><br></div><div>recordFile(char *file_name, int time_limit = 0, int silence_threshold = 0, int silence_hits = 0);</div><div><br></div><div><br><div><div>On Aug 21, 2008, at 1:19 AM, Marc Orenberg wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10pt; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I sent this email this morning but it didn't seem to make it through, so I'm sending it again. My appologies if it eventually becomes a duplicate:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hello. In the modLua documentation (pasted below), it suggests in the comment that recordings using recordFile may be ended by pressing the # key. For Python, the documentation for the API points to modLua, but the touch-tone barge-in doesn't seem to be working for me. And I can't figure out a simple way to accomplish this. Any advice?</div><div style="font-size: 10pt; font-family: 'Courier New', courier, monaco, monospace, sans-serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="font-size: 10pt; font-family: 'Courier New', courier, monaco, monospace, sans-serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><h3><font color="#0000ff" size="2">session:recordFile</font></h3><h3><font color="#0000ff" size="2">syntax is session:recordFile(file_name, max_len, silence_threshold, silence_secs)</font></h3><p><font color="#0000ff">Example:</font></p><pre><font color="#0000ff">session:recordFile("/tmp/blah.wav", 30000, 10, 10); -- pressing # ends the recording
session:streamFile("/tmp/blah.wav");
</font></pre></div></div></div></div></div>_______________________________________________<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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div></span></blockquote></div><br></div></body></html>