function tono(freq) return function() app.answer() for i = 1,20 do app.playtones(string.format("%d/4000", freq)) app.wait(4) end app.hangup() end end