directory program gets stuck in infinite loop on dead channel spewing logs like:
[Jun 15 04:02:06] VERBOSE[18809] logger.c: -- Playing 'dir-nomatch' (escape_digits=) (sample_offset 0)
[Jun 15 04:02:06] WARNING[18809] file.c: Failed to write frame
[Jun 15 04:02:06] WARNING[18809] file.c: Failed to write frame
[Jun 15 04:02:06] VERBOSE[18809] logger.c: -- <Local/s@from-pstn-f54d,2> Playing 'dir-intro-fnln' (language 'en')
[Jun 15 04:02:06] VERBOSE[18809] logger.c: -- Playing 'dir-nomatch' (escape_digits=) (sample_offset 0)
[Jun 15 04:02:06] WARNING[18809] file.c: Failed to write frame
[Jun 15 04:02:06] WARNING[18809] file.c: Failed to write frame
[Jun 15 04:02:06] VERBOSE[18809] logger.c: -- <Local/s@from-pstn-f54d,2> Playing 'dir-intro-fnln' (language 'en')
[Jun 15 04:02:06] VERBOSE[18809] logger.c: -- Playing 'dir-nomatch' (escape_digits=) (sample_offset 0)
[Jun 15 04:02:06] WARNING[18809] file.c: Failed to write frame
[Jun 15 04:02:06] WARNING[18809] file.c: Failed to write frame
While stuck, *cli "show channels" shows:
Channel Location State Application(Data)
Local/s@from-pstn-47 #@app-directory:3 Up AGI(directory|default|from-did
Local/s@from-pstn-f5 #@app-directory:3 Up AGI(directory|default|from-did
Local/s@from-pstn-0b #@app-directory:3 Up AGI(directory|default|from-did
Local/s@from-pstn-d2 #@app-directory:3 Up AGI(directory|default|from-did
4 active channels
4 active calls
Workaround: killall directory
Important to catch before the log fills up the HD