On 8 Jan 2018, at 18:44, Dovid Bender <[email protected]> wrote: > On Jan 8, 2018 11:35 AM, "Carlos Chavez" <[email protected]> wrote: >> We are running 13.8.4 at the moment which was the latest when deployed. >> I guess the patch never made it to the trunk. The problem with running a >> script to cleanup is that you may drag files that are open at the moment but >> still at 44 bytes because they are still waiting to be bridged. I may start >> using subdirectories as you mention but that means I will still have lots of >> empty files to deal with. > > Include in your script to only look at files that are x minutes old. For > instance if a file has not been touched in over an hour chances are the call > is over.
Alternatively, you could run a command by MixMonitor() which 'Will be executed when the recording is over.' This command would check if MIXMONITOR_FILENAME is 44 bytes or less and act accordingly. https://wiki.asterisk.org/wiki/display/AST/Application_MixMonitor -- Bertrand LUPART Linkeo.com - 23, rue des grands Augustins - 75006 Paris -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
