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
This commit is contained in:
parent
4f03b47d84
commit
ab9d8633c8
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue