Fix remaining issue with states cause of dangling event files
We also have to remove them on outgoing call. We use find instead of rm with a wildcard cause wildcard look not expanded here. Signed-off-by: Stacy Harper <contact@stacyharper.net> Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
parent
25913ebaf1
commit
61a138a153
2 changed files with 6 additions and 1 deletions
|
@ -150,7 +150,7 @@ checkforincomingcalls() {
|
|||
[ -z "$VOICECALLID" ] && return
|
||||
|
||||
[ -f "$CACHEDIR/${VOICECALLID}.monitoredcall" ] && return # prevent multiple rings
|
||||
rm -f "$CACHEDIR/${VOICECALLID}.*" # we cleanup all dangling event files
|
||||
find "$CACHEDIR" -name "$VOICECALLID.*" -delete # we cleanup all dangling event files
|
||||
touch "$CACHEDIR/${VOICECALLID}.monitoredcall" #this signals that we handled the call
|
||||
|
||||
cat "$LASTSTATE" > "$CACHEDIR/${VOICECALLID}.laststate"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue