Outgoing .call file not deleted when using DeadAGI

The owner is the same as the Asterisk process. Any ideas?

I recently switched the .call file from executing a script to using a context so that I could reliably catch the end of the call and execute DeadAGI to clean up some semaphore locks.

Everything runs fine, no errors on the console, the DeadAGI is the last thing to run, the locks get cleared…

But then the .call file is still sitting there in outgoing, and Asterisk calls it again.

When I was executing the script rather than the context, the call file got deleted. If I comment out the DeadAGI in the context, the call file gets deleted.

Figured it out - DeadAGI script wasn’t exiting - I was looking for stdin data that wasn’t there.