pespin has uploaded this change for review.

View Change

NGAP_Emulation.ttcn: Update AMF ID once received from AMF

This way follow-up lookups will make sure the AMF ID is correct too.

Change-Id: Ic36552eaedf6cad84e385348454146fcb85ecb08
---
M library/NGAP_Emulation.ttcn
1 file changed, 5 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/33/42233/1
diff --git a/library/NGAP_Emulation.ttcn b/library/NGAP_Emulation.ttcn
index 22eb605..745e808 100644
--- a/library/NGAP_Emulation.ttcn
+++ b/library/NGAP_Emulation.ttcn
@@ -563,6 +563,11 @@
/* if yes, dispatch to the ConnHdlr for this Ue-Connection */
var template (omit) octetstring nas_enc;
var integer assoc_id := f_assoc_id_by_ngap_ids(amf_ue_id, ran_ue_id);
+ /* Update AMF ID if not yet known: */
+ if (ispresent(amf_ue_id) and
+ not ispresent(NGapAssociationTable[assoc_id].amf_ue_ngap_id)) {
+ NGapAssociationTable[assoc_id].amf_ue_ngap_id := valueof(amf_ue_id);
+ }
vc_conn := NGapAssociationTable[assoc_id].comp_ref;
nas_enc := f_NGAP_get_NAS_PDU(mrf.msg);
if (isvalue(nas_enc)) {

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

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ic36552eaedf6cad84e385348454146fcb85ecb08
Gerrit-Change-Number: 42233
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>