Remove +1 stripping from numbers in modem scripts

Note prefix stripping was unreliable because any +1XX number would break things.
The advice should be to always dial with +1 / international prefixes and store
contacts in your contacts.tsv with international codes; this way we avoid any
duplicate errors since we can be assured things in mmcli always come back w/
international prefixing automatically.
This commit is contained in:
Miles Alan 2020-06-29 11:35:26 -05:00
parent 9f930e742a
commit a032e4923e
4 changed files with 5 additions and 15 deletions

View file

@ -22,7 +22,7 @@ editmsg() {
sendmsg() {
MODEM="$(modem_n)"
NUMBER="$(echo "$1" | sed 's/^[+]//' | sed 's/^1//')"
NUMBER="$1"
TEXT="$2"
TEXTSIZE="${#TEXT}"