IuUP: Improve enc/dec of PDU Type 14
Related: SYS#5969
Change-Id: I33e8a82e654b5afef8bc468cf6b1fff8fa9637ce
diff --git a/library/IuUP_Emulation.ttcn b/library/IuUP_Emulation.ttcn
index 19c2c84..899ba50 100644
--- a/library/IuUP_Emulation.ttcn
+++ b/library/IuUP_Emulation.ttcn
@@ -100,7 +100,7 @@
} else {
/* store an INIT_ACK to be transmitted later */
st.pending_tx_pdu := valueof(ts_IuUP_INIT_ACK(pdu.type_14.frame_nr,
- pdu.type_14.iuup_version));
+ pdu.type_14.u.proc.hdr.iuup_version));
}
} else if (match(pdu, tr_IuUP_INIT_ACK)) {
if (st.cfg.active_init == true) {
@@ -127,7 +127,7 @@
if (st.cfg.active_init) {
if (not isvalue(st.pending_tx_pdu)) {
/* send INIT */
- pdu := valueof(ts_IuUP_INIT('160051673C01270000820000001710000100'O));
+ pdu := valueof(ts_IuUP_INIT(ts_IuUP_PDU14_ProcSending_INIT));
st.pending_tx_pdu := pdu;
} /* else: wait for INIT-ACK return ''O at the end */