diff options
author | Harald Welte <laforge@osmocom.org> | 2022-04-27 17:50:13 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2022-04-27 18:39:26 +0200 |
commit | d686941aa8bbcb1edc08cd1a7529b5c3a3990f8b (patch) | |
tree | 8c4d9ed4755720fc2335d093e6b9bb74487b2c36 | |
parent | ef7ef632da3e61515541cabb1b33cae182d65ec3 (diff) |
CBSP: tr_CBSP_REPLACE_CBS_COMPL: num_compl_list is optional
The list might be empty because either there were no broadcasts
completed in case of a CBS message, or because it was an emergency
message where this IE is never used.
Change-Id: I2b24ac7e5857bdd50a821399b3c383cea9d408ad
-rw-r--r-- | library/CBSP_Templates.ttcn | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/library/CBSP_Templates.ttcn b/library/CBSP_Templates.ttcn index f86241ef..17d933ae 100644 --- a/library/CBSP_Templates.ttcn +++ b/library/CBSP_Templates.ttcn @@ -408,9 +408,17 @@ return template CBSP_PDU { var template CBSP_IEs ies := { tr_CbspMsgId(msg_id), tr_NewSerNo(new_ser_nr), - tr_OldSerNo(old_ser_nr), - tr_CbspNumComplList(compl_list) + tr_OldSerNo(old_ser_nr) }; + if (istemplatekind(compl_list, "*")) { + testcase.stop("TITAN > 6.5.0 doesn't support this"); + //ies[lengthof(ies)] := tr_CbspNumComplList ifpresent; + } else if (istemplatekind(compl_list, "?")) { + ies[lengthof(ies)] := tr_CbspNumComplList(?); + } else if (not istemplatekind(compl_list, "omit")) { + ies[lengthof(ies)] := tr_CbspNumComplList(compl_list); + } + if (istemplatekind(cell_list, "*")) { testcase.stop("TITAN > 6.5.0 doesn't support this"); //ies[lengthof(ies)] := tr_CbspCellList ifpresent; |