Revert "simplify code to get phone number for incoming calls"

This reverts commit b0bb9ac9fc.

This fixes the issue with modemlog having filled with extra mmcli
output
master
Anjandev Momi 4 years ago
parent 995a80c40c
commit e067fd9ad6
  1. 4
      scripts/modem/sxmo_modemmonitor.sh

@ -22,7 +22,9 @@ modem_n() {
lookupnumberfromcallid() {
VOICECALLID=$1
mmcli -m "$(modem_n)" --voice-list-calls -o "$VOICECALLID" -K |
sed -E 's/^call\.properties\.number\s+:\s+//'
grep call.properties.number |
cut -d ':' -f 2 |
tr -d ' '
}
checkformissedcalls() {

Loading…
Cancel
Save