msm-modem-uim-selection, sxmo_modem: fix incoming SMS TPDU decoding and delivery
This commit is contained in:
1 parent
a4dbf71af9
commit
5da053d8a5
3 files changed
+514
-308
No files matched your search
@@ -20,23 +20,23 @@ TEXT="$5"
|
||||
MMSID="$6" # optional
|
||||
|
||||
if [ "$ACTION" = "recv" ]; then
|
||||
VERB="Received"
|
||||
VERB="Received"
|
||||
else
|
||||
VERB="Sent"
|
||||
VERB="Sent"
|
||||
fi
|
||||
|
||||
# if group chain also print the sender
|
||||
if [ "$NUM" != "$LOGDIRNUM" ] && [ "$ACTION" = "recv" ]; then
|
||||
printf "%s from %s at %s:\n%b\n" \
|
||||
"$VERB" "$NUM" "$TIME" "$TEXT"
|
||||
printf "%s from %s at %s:\n%s\n" \
|
||||
"$VERB" "$NUM" "$TIME" "$TEXT"
|
||||
else
|
||||
printf "%s at %s:\n%b\n" \
|
||||
"$VERB" "$TIME" "$TEXT"
|
||||
printf "%s at %s:\n%s\n" \
|
||||
"$VERB" "$TIME" "$TEXT"
|
||||
fi
|
||||
|
||||
# print any attachments
|
||||
for attachment in "$SXMO_LOGDIR/$LOGDIRNUM/attachments/${MMSID}".*; do
|
||||
[ -f "$attachment" ] && printf "%s %s\n" "$icon_att" "$(basename "$attachment")"
|
||||
[ -f "$attachment" ] && printf "%s %s\n" "$icon_att" "$(basename "$attachment")"
|
||||
done
|
||||
|
||||
printf "\n"
|
||||
Reference in new issue
Block a user