diff options
author | Keith <keith@rhizomatica.org> | 2017-08-14 15:06:33 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2017-08-27 02:33:49 +0200 |
commit | ab9d8633c83885cad9c5124a88c5664864a7f611 (patch) | |
tree | 8c24459ab1d04000264bae220eb39f40a0f4a2fe /src/libmsc | |
parent | 4f03b47d842215e4e5c7dc62c442c3d30839a680 (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
Diffstat (limited to 'src/libmsc')
-rw-r--r-- | src/libmsc/gsm_04_11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmsc/gsm_04_11.c b/src/libmsc/gsm_04_11.c index eede74c23..f87acea1e 100644 --- a/src/libmsc/gsm_04_11.c +++ b/src/libmsc/gsm_04_11.c @@ -303,7 +303,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; |