Commit 1f06ab76 authored by Iztok Juvancic's avatar Iztok Juvancic
Browse files

check nas pdusessionreleasecommand

parent a32822a0
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -357,6 +357,26 @@ module LibNGAP_Templates {
                        /**
                         * @see ETSI TS 138 413 V16.12.0 (2023-05) 9.2.1.3 PDU SESSION RESOURCE RELEASE COMMAND
                         */
                        template (present) InitiatingMessage mw_n2_PDUSessionResourceReleaseCommand_base_nas := {
                            procedureCode := id_PDUSessionResourceRelease,
                            criticality   := reject,
                            value_        := {
                                              PDUSessionResourceReleaseCommand := {
                                                                                   protocolIEs := {
                                                                                                   *,
                                                                                                   {
                                                                                                       id := id_NAS_PDU,
                                                                                                       criticality := ignore,
                                                                                                       value_ := { NAS_PDU := ? }
                                                                                                   },
                                                                                                   *
                                                                                                  }
                                                                                    }
                                            }
                        } // End of template mw_n2_PDUSessionResourceReleaseCommand_base_nas
                        template (present) InitiatingMessage mw_n2_PDUSessionResourceReleaseCommand(
                                                                                                    template (present) AMF_UE_NGAP_ID p_amfUeNgapID := ?,
                                                                                                    template (present) RAN_UE_NGAP_ID p_ranUeNgapID := ?,
+17 −0
Original line number Diff line number Diff line
@@ -2218,6 +2218,23 @@ module LibNGAP_Functions {
                        log( vc_recvNgNasUl_Msg );
                        log("****************************************");

                    }
                }
            } else if (match(vc_recvNGAP_PDU.initiatingMessage, mw_n2_PDUSessionResourceReleaseCommand_base_nas)) {
                var integer numOfIEs := lengthof(vc_recvNGAP_PDU.initiatingMessage.value_.PDUSessionResourceReleaseCommand.protocolIEs)

                for (var integer i:=0;i<numOfIEs;i:=i+1){

                    if ( (vc_recvNGAP_PDU.initiatingMessage.value_.PDUSessionResourceReleaseCommand.protocolIEs[i].id) == 38 /*id_NAS_PDU*/) {
                        vc_recvNAS_PDU := vc_recvNGAP_PDU.initiatingMessage.value_.PDUSessionResourceReleaseCommand.protocolIEs[i].value_.nAS_PDU;
                        var bitstring bs := oct2bit(vc_recvNAS_PDU);
                        var integer v_result := decvalue(bs,vc_recvNgNasUl_Msg);
                        log("****************************************");
                        log("PDUSessionResourceReleaseCommand - NAS-PDU! ");
                        log( vc_recvNAS_PDU );
                        log( vc_recvNgNasUl_Msg );
                        log("****************************************");

                    }
                }
            }