Not receiving SMS messages
#15
(05-31-2020, 08:23 AM)Hi All,I wrote this script, will check all sms and delete from the modem. Wrote: #!/bin/bash

# This script will check all messages and delete all from the Modem
# Demetrius R. Paula Nov 2020

# Find the modem
modem=-1
for i in `seq 0 9`; do
    mmcli -m $i
    if [ $? -eq 0 ]; then
        modem=$i
        break;
    fi
done

echo "Modem is $i"

## Check all received and sent sms and delete them from the modem.
mmcli --modem 0 --messaging-list-sms | grep -oP '(?<=SMS/).*(?=.(sent))' | while read -r line ; do
mmcli --modem 0 --messaging-delete-sms=$line
done
mmcli --modem 0 --messaging-list-sms | grep -oP '(?<=SMS/).*(?=.(received))' | while read -r line ; do
mmcli --modem 0 --messaging-delete-sms=$line
done

# Print the list of remaining SMS'
mmcli --modem $i --messaging-list-sms


hope it is helpful.


Messages In This Thread
Not receiving SMS messages - by newton688 - 05-31-2020, 08:23 AM
RE: Not receiving SMS messages - by 1ZachM - 05-31-2020, 09:32 AM
RE: Not receiving SMS messages - by canadien666 - 05-31-2020, 07:48 PM
RE: Not receiving SMS messages - by antiX-Dave - 06-01-2020, 08:53 PM
RE: Not receiving SMS messages - by brb78 - 06-09-2020, 09:59 AM
RE: Not receiving SMS messages - by devrtz - 06-09-2020, 10:53 AM
RE: Not receiving SMS messages - by brb78 - 06-09-2020, 11:02 AM
RE: Not receiving SMS messages - by brb78 - 06-10-2020, 10:53 AM
RE: Not receiving SMS messages - by brb78 - 07-02-2020, 01:56 PM
RE: Not receiving SMS messages - by 0x070 - 07-02-2020, 06:10 PM
RE: Not receiving SMS messages - by bcnaz - 07-02-2020, 07:34 PM
RE: Not receiving SMS messages - by a-wai - 07-03-2020, 02:31 AM
RE: Not receiving SMS messages - by brb78 - 07-07-2020, 12:33 PM
RE: Not receiving SMS messages - by thwright - 07-08-2020, 08:07 AM
RE: Not receiving SMS messages - by demetrius - 11-24-2020, 12:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Best Way of Receiving Calls Without SIM (VOIP) lovepine88 12 906 8 hours ago
Last Post: AndyM
  Pinephone not receiving SMS. SMS not showing on modem either. norbear 4 1,289 03-27-2021, 11:43 AM
Last Post: norbear
  Chat client is eating messages tecnocris 0 372 03-06-2021, 10:14 AM
Last Post: tecnocris
  Possible to disable display of SMS text messages? Zebulon Walton 2 935 12-08-2020, 05:32 PM
Last Post: Zebulon Walton
Information Receiving Call During Sleep Experiment/Experience RTP 1 1,413 11-05-2020, 03:47 PM
Last Post: dukla2000

Forum Jump:


Users browsing this thread: 1 Guest(s)