explicitly delete calls after hangup/termination #134
This commit is contained in:
parent
06b25c3bc9
commit
4b4bfc851f
1 changed files with 4 additions and 2 deletions
|
@ -110,8 +110,9 @@ hangup() {
|
||||||
CALLID="$1"
|
CALLID="$1"
|
||||||
modem_cmd_errcheck -m "$(modem_n)" -o "$CALLID" --hangup
|
modem_cmd_errcheck -m "$(modem_n)" -o "$CALLID" --hangup
|
||||||
log_event "call_hangup" "$CALLID"
|
log_event "call_hangup" "$CALLID"
|
||||||
fatalerr "Call with $NUMBER terminated"
|
modem_cmd_errcheck -m "$(modem_n)" --voice-delete-call="$CALLID"
|
||||||
exit 1
|
finish "Call with $NUMBER terminated"
|
||||||
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
togglewindowify() {
|
togglewindowify() {
|
||||||
|
@ -142,6 +143,7 @@ incallmonitor() {
|
||||||
while true; do
|
while true; do
|
||||||
sxmo_statusbarupdate.sh
|
sxmo_statusbarupdate.sh
|
||||||
if mmcli -m "$(modem_n)" -K -o "$CALLID" | grep -E "^call.properties.state.+terminated"; then
|
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
|
if [ "$NUMBER" = "--" ]; then
|
||||||
fatalerr "Call with unknown number terminated"
|
fatalerr "Call with unknown number terminated"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue