Hi all,<div><br></div><div>I have a freeswitch lua script that is recording and I want the recording to be terminated when the user presses the '#' key. That is all working fine for me, but the recording always has the DTMF tone at the end of it. </div>
<div><br></div><div>I am wondering, is there a way to instruct freeswitch to not record the DTMF tones? Any help is appreciated. For reference, here are some excerpts from my lua script:</div><div><br></div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">
function inputHook(s, type, <span style="text-decoration: underline">obj</span>) </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"> freeswitch.consoleLog("INFO", "On input");</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"> if (inRecording and type == "<span style="text-decoration: underline">dtmf</span>" and <span style="text-decoration: underline">obj</span>['digit'] == '#') then </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"> inRecording = false;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"> return "break"; </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"> end </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">end </p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">.....</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">session:setInputCallback("inputHook", ""); </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">.....</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">session:recordFile(recordFilePath, 202, 500, 25);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">Thanks in advance</p><p></p></div>