laforge submitted this change.

View Change

Approvals: Jenkins Builder: Verified pespin: Looks good to me, but someone else must approve laforge: Looks good to me, approved
smscb: Populate "Number of Broadcasts Completed" to KILL COMPLETE

When responding to a CBSP KILL with a CBSP KILL COMPLETE, make sure
we include the optional "Number of Broadcasts Completed List" IE
in order to inform the CBC about how many times the just-killed
message had been broadcast before it was killed.

It seems some CBCs expect this IE to be present, while 3GPP TS 48.049
lists it as optional. Since we alrady have code to encode it, let's
just always add it - it certainly won't hurt.

Change-Id: I47aebd613dfc6dd9261ea9019a51aff0cd6470d8
Closes: SYS#5906
---
M src/osmo-bsc/smscb.c
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/osmo-bsc/smscb.c b/src/osmo-bsc/smscb.c
index 232c0d7..5fe6345 100644
--- a/src/osmo-bsc/smscb.c
+++ b/src/osmo-bsc/smscb.c
@@ -651,6 +651,8 @@
if (!smscb)
return -CBSP_CAUSE_MSG_REF_NOT_IDENTIFIED;

+ append_bcast_compl(r_state, chan_state->bts, smscb);
+
/* Remove it */
bts_smscb_del(smscb, chan_state, "KILL");
return 0;

To view, visit change 27790. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I47aebd613dfc6dd9261ea9019a51aff0cd6470d8
Gerrit-Change-Number: 27790
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge@osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>
Gerrit-MessageType: merged