From 6777dbdebd49d86b2690370728295eafdd70fbc4 Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Mon, 25 May 2020 14:51:35 -0500 Subject: [PATCH] Fix bug w/ newcall() in sxmo_modemmonitor.sh preventing ringing call from being logged Resolves sxmo-tickets #26 reported by ~jan_wagemakers --- scripts/modem/sxmo_modemmonitor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/modem/sxmo_modemmonitor.sh b/scripts/modem/sxmo_modemmonitor.sh index e1e7978..785d013 100755 --- a/scripts/modem/sxmo_modemmonitor.sh +++ b/scripts/modem/sxmo_modemmonitor.sh @@ -36,7 +36,7 @@ newcall() { TIME="$(date --iso-8601=seconds)" mkdir -p $LOGDIR - echo -ne "$TIME\tcall_ring\t$NUMBER\n" >> $LOGDIR/modemlog.tsv + echo -ne "$TIME\tcall_ring\t$INCOMINGNUMBER\n" >> $LOGDIR/modemlog.tsv echo "$VID:$INCOMINGNUMBER" > /tmp/sxmo_incomingcall echo "Number: $INCOMINGNUMBER (VID: $VID)"