From 4c0b70442c44a5d6d26b80c475c182831dce85f7 Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Sun, 4 Jul 2021 10:16:54 +0200 Subject: [PATCH] Close the dial when the contact hang up on initiated calls Signed-off-by: Stacy Harper Signed-off-by: Anjandev Momi --- scripts/modem/sxmo_modemmonitor.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/modem/sxmo_modemmonitor.sh b/scripts/modem/sxmo_modemmonitor.sh index 7345e93..ed694cc 100755 --- a/scripts/modem/sxmo_modemmonitor.sh +++ b/scripts/modem/sxmo_modemmonitor.sh @@ -110,6 +110,7 @@ checkforfinishedcalls() { printf %b "$TIME\tcall_finished\t$FINISHEDNUMBER\n" >> "$LOGDIR/modemlog.tsv" elif [ -f "$CACHEDIR/${FINISHEDCALLID}.initiatedcall" ]; then #this call was hung up by the contact + pkill -f sxmo_modemcall.sh echo "sxmo_modemmonitor: Finished call from $FINISHEDNUMBER">&2 rm -f "$CACHEDIR/${FINISHEDCALLID}.initiatedcall" printf %b "$TIME\tcall_finished\t$FINISHEDNUMBER\n" >> "$LOGDIR/modemlog.tsv"