]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pbx/pbx_spool: Fix issue when call files were executed too early 33/433/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:32:25 +0000 (20:32 +0000)
commitd5864a358c0adf813ed0122eb32006b43fe688de
treef509a2790b2f78b94776c01b72c916a0d553f3ac
parent4dbd4021c91a6a612746ed5e116021e270bc6ff5
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