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 &#39;#&#39; 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(&quot;INFO&quot;, &quot;On input&quot;);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">  if (inRecording and type == &quot;<span style="text-decoration: underline">dtmf</span>&quot; and <span style="text-decoration: underline">obj</span>[&#39;digit&#39;] == &#39;#&#39;) 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 &quot;break&quot;; </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(&quot;inputHook&quot;, &quot;&quot;); </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>