laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27966 )
Change subject: CBSP: tr_CBSP_REPLACE_CBS_COMPL: num_compl_list is optional ......................................................................
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 --- M library/CBSP_Templates.ttcn 1 file changed, 10 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/66/27966/1
diff --git a/library/CBSP_Templates.ttcn b/library/CBSP_Templates.ttcn index f86241e..17d933a 100644 --- a/library/CBSP_Templates.ttcn +++ b/library/CBSP_Templates.ttcn @@ -408,9 +408,17 @@ 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;