Adds missed calls list to phone menu

This commit is contained in:
Jonathan Hodgson 2021-04-04 17:30:49 +01:00
parent 30d0c1d6ac
commit b568784db3
3 changed files with 26 additions and 3 deletions

View file

@ -220,7 +220,7 @@ checkFinished(){
# it hasn't been answerd yet.
# Treat as a missed call
if ps aux | grep -E '\Wrofi' | grep -q "call-from-$contact"; then
echo "Missed call from $contact" >> "$CALL_DIR/missed-calls"
echo -e "$(date '+%s')\t$contact\t$number" >> "$CALL_DIR/missed-calls"
pkill mpv
mmcli -m "$modem" --voice-delete-call "$id"
ps aux | grep -E '\Wrofi' | grep "call-from-$contact" |