Updated handling of '+' in phone numbers, it is now never stripped but expected: all numbers should be full international phone numbers (including in contacts.tsv).

Ensure contacts from modem and contacts lists are all fully qualified phone numbers (starting with + and carrying a country prefix). This effectively filters out older/incompatible entries.
This commit is contained in:
Maarten van Gompel 2020-08-02 12:01:25 +02:00 committed by Miles Alan
parent 7f2f50c11a
commit 565eae8835
4 changed files with 7 additions and 5 deletions

View file

@ -41,7 +41,7 @@ vid_to_number() {
mmcli -m "$(modem_n)" -o "$1" -K |
grep call.properties.number |
cut -d ':' -f2 |
tr -d ' +'
tr -d ' '
}
log_event() {