From 48fcecefbe3f075d7f8059ee70e5a6a0e46ae11c Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Tue, 17 May 2022 16:35:26 -0400 Subject: [PATCH] f_phone: Use any available modem & show opts for a few action prompts --- scripts/f_phone | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/f_phone b/scripts/f_phone index ee2f53a..2f4f7be 100755 --- a/scripts/f_phone +++ b/scripts/f_phone @@ -32,7 +32,7 @@ VAR=" " cleannumber() { pn find -c "$F_PHONE_COUNTRYCODE" "$1"; } -mm() { mmcli -m 0 "$@"; } +mm() { mmcli -m any "$@"; } monitorstateget() { cat "$F_PHONE_MONITORSTATEFILE" || echo ""; } monitorstateset() { echo "$1" > "$F_PHONE_MONITORSTATEFILE"; } ringhangup() { mm -o "$(callid "incoming.+ringing")" --hangup; } @@ -119,7 +119,7 @@ maketext() { OPTS="send cancel editmsg editnum" [ -p /tmp/fbp.fifo ] && { echo -e "\b\f\r"; echo "$OPTS" | tr " " "\n"; } > /tmp/fbp.fifo - read -p "Action: " ACTION + read -p "Action ($OPTS): " ACTION [ "$ACTION" == send ] && break @@ -177,7 +177,7 @@ makecall() { OPTS="confirm cancel editnum" [ -p /tmp/fbp.fifo ] && { echo -e "\b\f\r"; echo "$OPTS" | tr " " "\n"; } > /tmp/fbp.fifo - read -p "Action: " ACTION + read -p "Action ($OPTS): " ACTION [ "$ACTION" == confirm ] && break [ "$ACTION" == editnum ] && NUMBER='' @@ -247,7 +247,7 @@ loopincall() { while true; do OPTS="nop hangup volup voldown modespeaker modehandheld modewired 1 2 3 4 5 6 7 8 9 0" [ -p /tmp/fbp.fifo ] && { echo -e "\b\f\r"; echo "$OPTS" | tr " " "\n"; } > /tmp/fbp.fifo - read -p "Action: " ACTION + read -p "Action ($OPTS): " ACTION [ "$ACTION" = "volup" ] && volset 1+ [ "$ACTION" = "voldown" ] && volset 1- -- 2.45.2