Allow calling numbers with + prefix

master
Miles Alan 5 years ago
parent 24d686eda3
commit 2a925ed1a0
  1. 2
      scripts/modem/sxmo_modemcall.sh

@ -73,7 +73,7 @@ dialmenu() {
echo "$NUMBER" | grep "Close Menu" && kill 0 echo "$NUMBER" | grep "Close Menu" && kill 0
NUMBER="$(echo "$NUMBER" | awk -F' ' '{print $NF}' | tr -d -)" NUMBER="$(echo "$NUMBER" | awk -F' ' '{print $NF}' | tr -d -)"
echo "$NUMBER" | grep -qE '^[0-9]+$' || err "$NUMBER is not a number" echo "$NUMBER" | grep -qE '^[+0-9]+$' || err "$NUMBER is not a number"
echo "Attempting to dial: $NUMBER" >&2 echo "Attempting to dial: $NUMBER" >&2
VID="$( VID="$(

Loading…
Cancel
Save