]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pbx/pbx_spool: Fix issue when call files were executed too early 34/434/2
authorIvan Poddubny <ivan.poddubny@gmail.com>
Mon, 11 May 2015 12:07:31 +0000 (12:07 +0000)
committerIvan Poddubny <ivan.poddubny@gmail.com>
Mon, 11 May 2015 20:28:52 +0000 (20:28 +0000)
commitcc39cfa2132d10629a455e4f93ba34c2d97d734d
tree09297fcc29e2fd192a225a63762f51eb78bfc66e
parentfb27395f7599f8dd4a34426c6552d19e0b0b98b4
pbx/pbx_spool: Fix issue when call files were executed too early

pbx_spool used to delete/move the call file upon successful outgoing
call completion, but did not delete it from in-memory list of files
(dirlist, used only when compiled with inotify/kqueue support).
That resulted in an extra attempt to process that filename after
retrytime seconds.
Then, if a new file with the same name appears that is scheduled
in future further than the completed one plus its retrytime,
then it gets executed earlier than expected.

This patch fixes remove_from_queue function to also remove the entry
from the dirlist.

ASTERISK-17069 #close
Reported by: Jeremy Kister

ASTERISK-24442 #close
Reported by: tootai

Change-Id: If9ec9b88073661ce485d6b008fd0b2612e49a28b
pbx/pbx_spool.c