<div dir="ltr">Hi team,<div>Spec:</div><div>OS - Debian </div><div>FS server Version -1.6.15 </div><div>I use Zoiper clients (in Ubuntu machine) directly connected to FS server. I'm supposed to write voicemail scripts where i get the call and bridge to Avaya gateway if there is no response i load a lua script.</div><div>    The lua script contains........... </div><div>             if session:ready() then</div><div>                   session:speak("Record your message now, to end recording press pound");</div><div>                    session:setInputCallback('onInput','');<br></div><div>                    test = session:recordFile(recording_filename, 60, 30, 5)</div><div>                     session:consoleLog("info", "session:recordFile() = " .. test )</div><div><br></div><div>And my Input CallBack function has got.....</div><div><div>function onInput(session, input_type, data)</div><div>        session:consoleLog("info", "inside" )</div><div>        if input_type == "dtmf" then</div><div>                return "break"</div><div>        end</div><div>end</div></div><div>Now my problem is I dont see any log which is inside the callback function.I can record the voice and getting saved but there is an error....</div><div><div>[DEBUG] switch_rtp.c:7255 RTP RECV DTMF #:1280</div><div>[INFO] switch_channel.c:515 RECV DTMF #:1280</div><div>[ERR] mod_lua.cpp:103 attempt to call a nil value</div><div>stack traceback:</div><div><span style="white-space:pre"> </span>[C]: in function 'recordFile'</div><div><span style="white-space:pre"> </span>/usr/local/freeswitch/scripts/test.lua:19: in main chunk</div></div><div><br></div><div>   I can witness that the session is receiving the DTMF signal but then the function is not getting executed. I tried commenting the func call of callback and I can witness the DTMF is not sensed and hence the record termination happens only after silence_threshold. </div><div>    I badly need to process the keypress DTMF for more options without console err.</div><div>    NOTE: instead of recordFile() I tried speak() even by then i get the same error "attempt to call a nil value" in speak function.</div><div>Please save me FS.!</div><div><br></div></div>