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
This commit is contained in:
Anjandev Momi 2020-12-05 23:16:59 -05:00
parent 995a80c40c
commit e067fd9ad6

View file

@ -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() {