pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39120?usp=email )


Change subject: RAN_Emulation: Allow client to trigger SCCP CC if automatic CC 
was disabled
......................................................................

RAN_Emulation: Allow client to trigger SCCP CC if automatic CC was disabled

This allows users of RAN_Emulation to trigger events in between CR
transmited and CC being receied at the IUT.

Change-Id: I117c8fde118b488b011e381d51eed378d2f3ff0e
---
M library/RAN_Emulation.ttcnpp
1 file changed, 19 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/20/39120/1

diff --git a/library/RAN_Emulation.ttcnpp b/library/RAN_Emulation.ttcnpp
index 5eb14de..294954d 100644
--- a/library/RAN_Emulation.ttcnpp
+++ b/library/RAN_Emulation.ttcnpp
@@ -72,6 +72,10 @@
        port RAN_PROC_PT BSSAP_PROC;
 }

+/* we tell SCCP that connection (rx CR) was confirmed (tx CC) */
+type record MSC_CONN_PRIM_CONNECT_RES {
+};
+
 /* SCCP tell us that connection was released */
 type record MSC_CONN_PRIM_DISC_IND {
 };
@@ -87,11 +91,19 @@

 /* Auxiliary primitive that can happen on the port between per-connection 
client and this dispatcher */
 type union RAN_Conn_Prim {
+       MSC_CONN_PRIM_CONNECT_RES connect_res,
        MSC_CONN_PRIM_DISC_IND disc_ind,
        MSC_CONN_PRIM_DISC_REQ disc_req,
        MSC_CONN_PRIM_CONF_IND conf_ind
 }

+template (present) RAN_Conn_Prim tr_MSC_CONN_PRIM_CONNECT_RES := {
+       connect_res := ?
+}
+template (value) RAN_Conn_Prim ts_MSC_CONN_PRIM_CONNECT_RES := {
+       connect_res := {}
+}
+
 template (present) RAN_Conn_Prim tr_MSC_CONN_PRIM_DISC_IND := {
        disc_ind := ?
 }
@@ -1113,6 +1125,13 @@
                        RANAP.send(ranap_ud);
                        }

+               /* Connect Confirm client -> SCCP */
+               [] CLIENT.receive(tr_MSC_CONN_PRIM_CONNECT_RES) -> value 
ran_conn_prim sender vc_conn {
+                       var integer conn_id := f_conn_id_by_comp(vc_conn);
+                       /* confirm connection establishment */
+                       RANAP.send(ts_RANAP_CONNECT_res(conn_id, omit));
+                       }
+
                /* Disconnect request client -> SCCP */
                [] CLIENT.receive(tr_MSC_CONN_PRIM_DISC_REQ) -> value 
ran_conn_prim sender vc_conn {
                        var integer conn_id := f_conn_id_by_comp(vc_conn);

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39120?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I117c8fde118b488b011e381d51eed378d2f3ff0e
Gerrit-Change-Number: 39120
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>

Reply via email to