sxmo-utils/scripts/modem
Stacy Harper 91fe7fbeab Fix the unreliable modem numbers prefix issues
Sometime, the modem will give 0611924312 as incoming text or
call number instead of +33611924312 (example in france).

This cause two issues cause of format missmatch:

* Notifications sometime come from "Unknown" when we actually know
the contact
* Text/Dial menu entries are duplicated with "Unknown" persons

We try here to fix boths issues with a simple idea. We will fallback
to a default prefix when it is missing (on phone like numbers,
composed of 10 numbers).

This prefix is an environment variable that cause 0 impact if missing.

* sxmo_contacts.sh will fix the recent numbers prefixes with the default
* sxmo_modemmonitor.sh will also fix the prefix with the default one

This should solve missmatch issues as both will use country code format

I only recommend to always store contacts in the prefixed format in the
contacts.tsv file.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-10 13:20:19 +02:00
..
sxmo_modemcall.sh Moved checkmark to icons 2021-03-16 22:01:41 +01:00
sxmo_modemdial.sh Add a dsubmenu to reply/call on SMS windows 2021-03-27 23:22:40 +01:00
sxmo_modeminfo.sh Removed explicit font from most dmenu calls, dmenu font is read from Xresources now and kept as uniform as possible 2021-02-01 18:32:32 +01:00
sxmo_modemlog.sh Call common script, moved icons to common script, removed unnecessary aliases from common (let's add them only when there are conflicts), made sure plays along with shellcheck 2021-02-01 18:32:32 +01:00
sxmo_modemmonitor.sh Fix the unreliable modem numbers prefix issues 2021-04-10 13:20:19 +02:00
sxmo_modemmonitortoggle.sh Prevent starting multiple modemmonitor on logout/login 2021-04-09 23:22:21 +02:00
sxmo_modemsendsms.sh Do not truncate stderr file output 2021-03-17 22:32:29 +01:00
sxmo_modemtext.sh fixed minor shellcheck issues 2021-04-05 12:08:22 +02:00
sxmo_unlocksim.sh minor fixes to satisfy shellcheck 2021-03-31 20:14:53 +02:00