Asterisk call file not deleted

asterisk

I'm placing outgoing calls using Asterisk call files on Asterisk 1.8. My call files are very simple and have no MaxRetries or RetryTime specified. If a call succeeds, the corresponding callfile is deleted.

However, if the call fails for some reason, the callfile does not get deleted. Instead, it stays in the /var/spool/asterisk/outgoing directory, and has the following appended to it: "StartRetry: 1276 1 (1314160379)"

Why is that happening? I'm expecting the file to be deleted immediately after the call, no matter what the resulting status of the call is.

Best Answer

It could be that you have incorrect edit times on your call files. Try setting AlwaysDelete to Yes.

AlwaysDelete: Yes/No - If the file's modification time is in the future, the call file will not be deleted

Related Topic