verify numbers with pn

This commit is contained in:
noneofyourbusiness 2021-05-27 19:07:35 +02:00 committed by Stacy Harper
parent e444553ae4
commit 3599be95f4
No known key found for this signature in database
GPG key ID: 5BAC92328B7C5D65
4 changed files with 33 additions and 12 deletions

View file

@ -53,7 +53,7 @@ vid_to_number() {
}
number_to_contactname() {
NUMBER="$(echo "$1" | sed "s/^0\([0-9]\{9\}\)$/${DEFAULT_NUMBER_PREFIX:-0}\1/")"
NUMBER="$1"
CONTACT=$(sxmo_contacts.sh --all |
grep "^$NUMBER:" |
cut -d':' -f 2 |