summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith <keith@rhizomatica.org>2017-08-14 15:06:33 +0200
committerHarald Welte <laforge@gnumonks.org>2017-08-15 13:28:36 +0000
commit93ee0937ef7fecf8a25549eb123352ca1c52e63e (patch)
tree01137e6dd0817ff8ec50a0524ebd5094051c5631
parente4290b1501db82e47d5ae2bbd179c01e092de7bd (diff)
LIBMSC: Place correct dst address in status report
gsm_04_11.c: gsm340_gen_sms_status_report_tpdu() When we construct the status report PDU, use sms->src instead of sms->dst as the destination address This way we tell the MS that the message was delivered to the destination and not to itself. This is relevant for phones that display a textual representation of the delivery report. Change-Id: I2d4f87ac777465de9bfb5a775a789a2691755ee9
-rw-r--r--openbsc/src/libmsc/gsm_04_11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libmsc/gsm_04_11.c b/openbsc/src/libmsc/gsm_04_11.c
index 8b4ffce..d56a97c 100644
--- a/openbsc/src/libmsc/gsm_04_11.c
+++ b/openbsc/src/libmsc/gsm_04_11.c
@@ -301,7 +301,7 @@ static int gsm340_gen_sms_status_report_tpdu(struct msgb *msg,
*smsp = sms->msg_ref;
/* generate recipient address */
- oa_len = gsm340_gen_oa_sub(oa, sizeof(oa), &sms->dst);
+ oa_len = gsm340_gen_oa_sub(oa, sizeof(oa), &sms->src);
if (oa_len < 0)
return -ENOSPC;