From 4b4bfc851fb703b30af93ea95b58600bf478e6bb Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Mon, 7 Dec 2020 21:53:09 +0100 Subject: [PATCH] explicitly delete calls after hangup/termination #134 --- scripts/modem/sxmo_modemcall.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/modem/sxmo_modemcall.sh b/scripts/modem/sxmo_modemcall.sh index 7f91b4a..77fb2bc 100755 --- a/scripts/modem/sxmo_modemcall.sh +++ b/scripts/modem/sxmo_modemcall.sh @@ -110,8 +110,9 @@ hangup() { CALLID="$1" modem_cmd_errcheck -m "$(modem_n)" -o "$CALLID" --hangup log_event "call_hangup" "$CALLID" - fatalerr "Call with $NUMBER terminated" - exit 1 + modem_cmd_errcheck -m "$(modem_n)" --voice-delete-call="$CALLID" + finish "Call with $NUMBER terminated" + exit 0 } togglewindowify() { @@ -142,6 +143,7 @@ incallmonitor() { while true; do sxmo_statusbarupdate.sh if mmcli -m "$(modem_n)" -K -o "$CALLID" | grep -E "^call.properties.state.+terminated"; then + mmcli -m "$(modem_n)" --voice-delete-call="$CALLID" if [ "$NUMBER" = "--" ]; then fatalerr "Call with unknown number terminated" else