<p>Harald Welte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/12860">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved
  Vadim Yanitskiy: Looks good to me, but someone else must approve

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">GSUP: add inter-MSC handover related msgs and IEs<br><br>Based on a draft created by Neels, which is the result of reading a MAP<br>trace of two MSCs negotiating inter-MSC handovers, and of reading the<br>TS 29.002, TS 29.010 and related specs:<br>https://lists.osmocom.org/pipermail/openbsc/2019-January/012653.html<br><br>I figured out that the "Handover Number" mentioned in the specifications<br>is the same as the MSISDN IE that we already have, so we can use that<br>instead of creating a new IE (example usage in tests/gsup/gsup_test.c).<br><br>Create a new OSMO_GSUP_MSGT_E_ROUTING_ERROR message type, which the GSUP<br>server uses to tell a client that its message could not be forwarded to<br>the destination (see [1]). MAP has no related message.<br><br>[1]: Change-Id: Ia4f345abc877baaf0a8f73b8988e6514d9589bf5 (osmo-hlr.git)<br><br>Related: OS#3774<br>Change-Id: Ic00b0601eacff6d72927cea51767801142ee75db<br>---<br>M include/osmocom/gsm/gsup.h<br>M src/gsm/gsup.c<br>M tests/gsup/gsup_test.c<br>M tests/gsup/gsup_test.err<br>M tests/gsup/gsup_test.ok<br>5 files changed, 540 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/gsm/gsup.h b/include/osmocom/gsm/gsup.h</span><br><span>index 7f304a3..1374e0e 100644</span><br><span>--- a/include/osmocom/gsm/gsup.h</span><br><span>+++ b/include/osmocom/gsm/gsup.h</span><br><span>@@ -42,7 +42,9 @@</span><br><span> #include <osmocom/core/msgb.h></span><br><span> #include <osmocom/gsm/gsup_sms.h></span><br><span> #include <osmocom/gsm/protocol/gsm_23_003.h></span><br><span style="color: hsl(120, 100%, 40%);">+#include <osmocom/gsm/protocol/gsm_03_40.h></span><br><span> #include <osmocom/gsm/protocol/gsm_04_08_gprs.h></span><br><span style="color: hsl(120, 100%, 40%);">+#include <osmocom/gsm/protocol/gsm_08_08.h></span><br><span> #include <osmocom/crypt/auth.h></span><br><span> </span><br><span> #define OSMO_GSUP_PORT 4222</span><br><span>@@ -103,6 +105,14 @@</span><br><span>  OSMO_GSUP_IMEI_IE                       = 0x50,</span><br><span>      OSMO_GSUP_IMEI_RESULT_IE                = 0x51,</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+   /* Inter-MSC handover related */</span><br><span style="color: hsl(120, 100%, 40%);">+      OSMO_GSUP_SOURCE_NAME_IE                = 0x60,</span><br><span style="color: hsl(120, 100%, 40%);">+       OSMO_GSUP_DESTINATION_NAME_IE           = 0x61,</span><br><span style="color: hsl(120, 100%, 40%);">+       OSMO_GSUP_AN_APDU_IE                    = 0x62,</span><br><span style="color: hsl(120, 100%, 40%);">+       OSMO_GSUP_CAUSE_RR_IE                   = 0x63,</span><br><span style="color: hsl(120, 100%, 40%);">+       OSMO_GSUP_CAUSE_BSSAP_IE                = 0x64,</span><br><span style="color: hsl(120, 100%, 40%);">+       OSMO_GSUP_CAUSE_SM_IE                   = 0x65,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>    _OSMO_GSUP_IEI_END_MARKER</span><br><span> };</span><br><span> </span><br><span>@@ -164,6 +174,26 @@</span><br><span>   OSMO_GSUP_MSGT_CHECK_IMEI_REQUEST       = 0b00110000,</span><br><span>        OSMO_GSUP_MSGT_CHECK_IMEI_ERROR         = 0b00110001,</span><br><span>        OSMO_GSUP_MSGT_CHECK_IMEI_RESULT        = 0b00110010,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+       OSMO_GSUP_MSGT_E_PREPARE_HANDOVER_REQUEST               = 0b00110100,</span><br><span style="color: hsl(120, 100%, 40%);">+ OSMO_GSUP_MSGT_E_PREPARE_HANDOVER_ERROR                 = 0b00110101,</span><br><span style="color: hsl(120, 100%, 40%);">+ OSMO_GSUP_MSGT_E_PREPARE_HANDOVER_RESULT                = 0b00110110,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+       OSMO_GSUP_MSGT_E_PREPARE_SUBSEQUENT_HANDOVER_REQUEST    = 0b00111000,</span><br><span style="color: hsl(120, 100%, 40%);">+ OSMO_GSUP_MSGT_E_PREPARE_SUBSEQUENT_HANDOVER_ERROR      = 0b00111001,</span><br><span style="color: hsl(120, 100%, 40%);">+ OSMO_GSUP_MSGT_E_PREPARE_SUBSEQUENT_HANDOVER_RESULT     = 0b00111010,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+       OSMO_GSUP_MSGT_E_SEND_END_SIGNAL_REQUEST                = 0b00111100,</span><br><span style="color: hsl(120, 100%, 40%);">+ OSMO_GSUP_MSGT_E_SEND_END_SIGNAL_ERROR                  = 0b00111101,</span><br><span style="color: hsl(120, 100%, 40%);">+ OSMO_GSUP_MSGT_E_SEND_END_SIGNAL_RESULT                 = 0b00111110,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+       OSMO_GSUP_MSGT_E_PROCESS_ACCESS_SIGNALLING_REQUEST      = 0b01000000,</span><br><span style="color: hsl(120, 100%, 40%);">+ OSMO_GSUP_MSGT_E_FORWARD_ACCESS_SIGNALLING_REQUEST      = 0b01000100,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+       OSMO_GSUP_MSGT_E_CLOSE                                  = 0b01000111,</span><br><span style="color: hsl(120, 100%, 40%);">+ OSMO_GSUP_MSGT_E_ABORT                                  = 0b01001011,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+       OSMO_GSUP_MSGT_E_ROUTING_ERROR                          = 0b01001110,</span><br><span> };</span><br><span> </span><br><span> #define OSMO_GSUP_IS_MSGT_REQUEST(msgt) (((msgt) & 0b00000011) == 0b00)</span><br><span>@@ -190,6 +220,12 @@</span><br><span>        OSMO_GSUP_IMEI_RESULT_NACK              = 2, /* on wire: 1 */</span><br><span> };</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* 3GPP 29.002 AccessNetworkProtocolId */</span><br><span style="color: hsl(120, 100%, 40%);">+enum osmo_gsup_access_network_protocol {</span><br><span style="color: hsl(120, 100%, 40%);">+  OSMO_GSUP_ACCESS_NETWORK_PROTOCOL_TS3G_48006 = 1,</span><br><span style="color: hsl(120, 100%, 40%);">+     OSMO_GSUP_ACCESS_NETWORK_PROTOCOL_TS3G_25413 = 2,</span><br><span style="color: hsl(120, 100%, 40%);">+};</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> /*! TCAP-like session state */</span><br><span> enum osmo_gsup_session_state {</span><br><span>  /*! Undefined session state */</span><br><span>@@ -245,6 +281,14 @@</span><br><span> static inline const char *osmo_gsup_message_class_name(enum osmo_gsup_message_class val)</span><br><span> { return get_value_string(osmo_gsup_message_class_names, val); }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/*! AccessNetworkSignalInfo as in 3GPP TS 29.002. */</span><br><span style="color: hsl(120, 100%, 40%);">+struct osmo_gsup_an_apdu {</span><br><span style="color: hsl(120, 100%, 40%);">+   /* AccessNetworkProtocolId as in 3GPP TS 29.002. */</span><br><span style="color: hsl(120, 100%, 40%);">+   enum osmo_gsup_access_network_protocol access_network_proto;</span><br><span style="color: hsl(120, 100%, 40%);">+  const uint8_t *data;</span><br><span style="color: hsl(120, 100%, 40%);">+  size_t data_len;</span><br><span style="color: hsl(120, 100%, 40%);">+};</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> /*! parsed/decoded GSUP protocol message */</span><br><span> struct osmo_gsup_message {</span><br><span>  enum osmo_gsup_message_type     message_type;</span><br><span>@@ -307,6 +351,28 @@</span><br><span>          * Inter-MSC messages are *required* to set a class = OSMO_GSUP_MESSAGE_CLASS_INTER_MSC. For older message classes, this may</span><br><span>          * be omitted (for backwards compatibility only -- if in doubt, include it). */</span><br><span>      enum osmo_gsup_message_class            message_class;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+      /*! For messages routed via another GSUP entity (via HLR), the IPA name of the entity that sent this message. */</span><br><span style="color: hsl(120, 100%, 40%);">+      const uint8_t                   *source_name;</span><br><span style="color: hsl(120, 100%, 40%);">+ /*! Number of bytes in source_name. */</span><br><span style="color: hsl(120, 100%, 40%);">+        size_t                          source_name_len;</span><br><span style="color: hsl(120, 100%, 40%);">+      /*! For messages routed via another GSUP entity (via HLR), the IPA name of the entity that should ultimately</span><br><span style="color: hsl(120, 100%, 40%);">+   * receive this message. */</span><br><span style="color: hsl(120, 100%, 40%);">+   const uint8_t                   *destination_name;</span><br><span style="color: hsl(120, 100%, 40%);">+    /*! Number of bytes in destination_name. */</span><br><span style="color: hsl(120, 100%, 40%);">+   size_t                          destination_name_len;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+       /*! inter-MSC AN-APDU. */</span><br><span style="color: hsl(120, 100%, 40%);">+     struct osmo_gsup_an_apdu        an_apdu;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+    uint8_t                         cause_rr; /*!< 0 is a valid cause */</span><br><span style="color: hsl(120, 100%, 40%);">+       bool                            cause_rr_set; /*!< whether cause_rr is set */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+    enum gsm0808_cause              cause_bssap; /*!< 0 is a valid cause */</span><br><span style="color: hsl(120, 100%, 40%);">+    bool                            cause_bssap_set; /*!< whether cause_bssap is set */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+      /*! Session Management cause as of 3GPP TS 24.008 10.5.6.6 / Table 10.5.157. */</span><br><span style="color: hsl(120, 100%, 40%);">+       enum gsm48_gsm_cause            cause_sm;</span><br><span> };</span><br><span> </span><br><span> int osmo_gsup_decode(const uint8_t *data, size_t data_len,</span><br><span>diff --git a/src/gsm/gsup.c b/src/gsm/gsup.c</span><br><span>index 71dbbe1..a3d9eef 100644</span><br><span>--- a/src/gsm/gsup.c</span><br><span>+++ b/src/gsm/gsup.c</span><br><span>@@ -83,6 +83,26 @@</span><br><span>  OSMO_VALUE_STRING(OSMO_GSUP_MSGT_CHECK_IMEI_ERROR),</span><br><span>  OSMO_VALUE_STRING(OSMO_GSUP_MSGT_CHECK_IMEI_RESULT),</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+      OSMO_VALUE_STRING(OSMO_GSUP_MSGT_E_PREPARE_HANDOVER_REQUEST),</span><br><span style="color: hsl(120, 100%, 40%);">+ OSMO_VALUE_STRING(OSMO_GSUP_MSGT_E_PREPARE_HANDOVER_ERROR),</span><br><span style="color: hsl(120, 100%, 40%);">+   OSMO_VALUE_STRING(OSMO_GSUP_MSGT_E_PREPARE_HANDOVER_RESULT),</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+        OSMO_VALUE_STRING(OSMO_GSUP_MSGT_E_PREPARE_SUBSEQUENT_HANDOVER_REQUEST),</span><br><span style="color: hsl(120, 100%, 40%);">+      OSMO_VALUE_STRING(OSMO_GSUP_MSGT_E_PREPARE_SUBSEQUENT_HANDOVER_ERROR),</span><br><span style="color: hsl(120, 100%, 40%);">+        OSMO_VALUE_STRING(OSMO_GSUP_MSGT_E_PREPARE_SUBSEQUENT_HANDOVER_RESULT),</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+     OSMO_VALUE_STRING(OSMO_GSUP_MSGT_E_SEND_END_SIGNAL_REQUEST),</span><br><span style="color: hsl(120, 100%, 40%);">+  OSMO_VALUE_STRING(OSMO_GSUP_MSGT_E_SEND_END_SIGNAL_ERROR),</span><br><span style="color: hsl(120, 100%, 40%);">+    OSMO_VALUE_STRING(OSMO_GSUP_MSGT_E_SEND_END_SIGNAL_RESULT),</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ OSMO_VALUE_STRING(OSMO_GSUP_MSGT_E_PROCESS_ACCESS_SIGNALLING_REQUEST),</span><br><span style="color: hsl(120, 100%, 40%);">+        OSMO_VALUE_STRING(OSMO_GSUP_MSGT_E_FORWARD_ACCESS_SIGNALLING_REQUEST),</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+      OSMO_VALUE_STRING(OSMO_GSUP_MSGT_E_CLOSE),</span><br><span style="color: hsl(120, 100%, 40%);">+    OSMO_VALUE_STRING(OSMO_GSUP_MSGT_E_ABORT),</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  OSMO_VALUE_STRING(OSMO_GSUP_MSGT_E_ROUTING_ERROR),</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>         { 0, NULL }</span><br><span> };</span><br><span> </span><br><span>@@ -247,6 +267,26 @@</span><br><span>         return -1;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/*! Decode AN-apdu (see 3GPP TS 29.002 7.6.9.1).</span><br><span style="color: hsl(120, 100%, 40%);">+ * \param[out] gsup_msg abstract GSUP message structure</span><br><span style="color: hsl(120, 100%, 40%);">+ * \param[in]  data     pointer to the raw IE payload</span><br><span style="color: hsl(120, 100%, 40%);">+ * \param[in]  data_len length of IE pointed by \ref data</span><br><span style="color: hsl(120, 100%, 40%);">+ * \returns 0 in case of success, negative in case of error</span><br><span style="color: hsl(120, 100%, 40%);">+ */</span><br><span style="color: hsl(120, 100%, 40%);">+int osmo_gsup_decode_an_apdu(struct osmo_gsup_message *gsup_msg, const uint8_t *data, size_t data_len)</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+ if (data_len < 1) {</span><br><span style="color: hsl(120, 100%, 40%);">+                LOGP(DLGSUP, LOGL_ERROR, "Corrupted an_apdu message (length must be >= 1)\n");</span><br><span style="color: hsl(120, 100%, 40%);">+           return -EINVAL;</span><br><span style="color: hsl(120, 100%, 40%);">+       }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   gsup_msg->an_apdu.access_network_proto = data[0];</span><br><span style="color: hsl(120, 100%, 40%);">+  gsup_msg->an_apdu.data_len = data_len -1;</span><br><span style="color: hsl(120, 100%, 40%);">+  gsup_msg->an_apdu.data = data + 1;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+       return 0;</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> /*! Decode (parse) a GSUP message</span><br><span>  *  \param[in] const_data input data to be parsed</span><br><span>  *  \param[in] data_len length of input (\a const_data)</span><br><span>@@ -481,6 +521,36 @@</span><br><span>                   gsup_msg->message_class = value[0];</span><br><span>                       break;</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+            case OSMO_GSUP_SOURCE_NAME_IE:</span><br><span style="color: hsl(120, 100%, 40%);">+                        gsup_msg->source_name = value;</span><br><span style="color: hsl(120, 100%, 40%);">+                     gsup_msg->source_name_len = value_len;</span><br><span style="color: hsl(120, 100%, 40%);">+                     break;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+              case OSMO_GSUP_DESTINATION_NAME_IE:</span><br><span style="color: hsl(120, 100%, 40%);">+                   gsup_msg->destination_name = value;</span><br><span style="color: hsl(120, 100%, 40%);">+                        gsup_msg->destination_name_len = value_len;</span><br><span style="color: hsl(120, 100%, 40%);">+                        break;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+              case OSMO_GSUP_AN_APDU_IE:</span><br><span style="color: hsl(120, 100%, 40%);">+                    rc = osmo_gsup_decode_an_apdu(gsup_msg, value, value_len);</span><br><span style="color: hsl(120, 100%, 40%);">+                    if (rc)</span><br><span style="color: hsl(120, 100%, 40%);">+                               return rc;</span><br><span style="color: hsl(120, 100%, 40%);">+                    break;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+              case OSMO_GSUP_CAUSE_RR_IE:</span><br><span style="color: hsl(120, 100%, 40%);">+                   gsup_msg->cause_rr = value[0];</span><br><span style="color: hsl(120, 100%, 40%);">+                     gsup_msg->cause_rr_set = true;</span><br><span style="color: hsl(120, 100%, 40%);">+                     break;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+              case OSMO_GSUP_CAUSE_BSSAP_IE:</span><br><span style="color: hsl(120, 100%, 40%);">+                        gsup_msg->cause_bssap = value[0];</span><br><span style="color: hsl(120, 100%, 40%);">+                  gsup_msg->cause_bssap_set = true;</span><br><span style="color: hsl(120, 100%, 40%);">+                  break;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+              case OSMO_GSUP_CAUSE_SM_IE:</span><br><span style="color: hsl(120, 100%, 40%);">+                   gsup_msg->cause_sm = value[0];</span><br><span style="color: hsl(120, 100%, 40%);">+                     break;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>             default:</span><br><span>                     LOGP(DLGSUP, LOGL_NOTICE,</span><br><span>                         "GSUP IE type %d unknown\n", iei);</span><br><span>@@ -568,6 +638,35 @@</span><br><span>     *len_field = msgb_length(msg) - old_len;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/*! Encode AN-apdu (see 3GPP TS 29.002 7.6.9.1).</span><br><span style="color: hsl(120, 100%, 40%);">+ * \param[out] msg      target message buffer (caller-allocated)</span><br><span style="color: hsl(120, 100%, 40%);">+ * \param[in]  gsup_msg abstract GSUP message structure</span><br><span style="color: hsl(120, 100%, 40%);">+ * \returns 0 in case of success, negative in case of error</span><br><span style="color: hsl(120, 100%, 40%);">+ */</span><br><span style="color: hsl(120, 100%, 40%);">+int osmo_gsup_encode_an_apdu(struct msgb *msg, const struct osmo_gsup_message *gsup_msg)</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+ const struct osmo_gsup_an_apdu an_apdu = gsup_msg->an_apdu;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+      if (msgb_tailroom(msg) < 2 + an_apdu.data_len) {</span><br><span style="color: hsl(120, 100%, 40%);">+           LOGP(DLGSUP, LOGL_ERROR, "Not enough tailroom in msg to encode an_apdu:"</span><br><span style="color: hsl(120, 100%, 40%);">+                 " IE header (2) + an_apdu.data_len (%zu) == %zu, msgb tailroom == %d\n",</span><br><span style="color: hsl(120, 100%, 40%);">+                    an_apdu.data_len, an_apdu.data_len + 2, msgb_tailroom(msg));</span><br><span style="color: hsl(120, 100%, 40%);">+             return -ENOMEM;</span><br><span style="color: hsl(120, 100%, 40%);">+       }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   /* Tag and total length */</span><br><span style="color: hsl(120, 100%, 40%);">+    msgb_tv_put(msg, OSMO_GSUP_AN_APDU_IE, 1 + an_apdu.data_len);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+       /* Put access_network_proto */</span><br><span style="color: hsl(120, 100%, 40%);">+        msgb_v_put(msg, an_apdu.access_network_proto);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+      /* Put data */</span><br><span style="color: hsl(120, 100%, 40%);">+        uint8_t *buf = msgb_put(msg, an_apdu.data_len);</span><br><span style="color: hsl(120, 100%, 40%);">+       memcpy(buf, an_apdu.data, an_apdu.data_len);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+        return 0;</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> /*! Encode a GSUP message</span><br><span>  *  \param[out] msg message buffer to which encoded message is written</span><br><span>  *  \param[in] gsup_msg \ref osmo_gsup_message data to be encoded</span><br><span>@@ -727,6 +826,34 @@</span><br><span>            msgb_tlv_put(msg, OSMO_GSUP_MESSAGE_CLASS_IE, sizeof(u8), &u8);</span><br><span>  }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ if (gsup_msg->source_name)</span><br><span style="color: hsl(120, 100%, 40%);">+         msgb_tlv_put(msg, OSMO_GSUP_SOURCE_NAME_IE, gsup_msg->source_name_len, gsup_msg->source_name);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+        if (gsup_msg->destination_name)</span><br><span style="color: hsl(120, 100%, 40%);">+            msgb_tlv_put(msg, OSMO_GSUP_DESTINATION_NAME_IE, gsup_msg->destination_name_len,</span><br><span style="color: hsl(120, 100%, 40%);">+                        gsup_msg->destination_name);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+        if (gsup_msg->an_apdu.access_network_proto || gsup_msg->an_apdu.data_len) {</span><br><span style="color: hsl(120, 100%, 40%);">+             rc = osmo_gsup_encode_an_apdu(msg, gsup_msg);</span><br><span style="color: hsl(120, 100%, 40%);">+         if (rc) {</span><br><span style="color: hsl(120, 100%, 40%);">+                     LOGP(DLGSUP, LOGL_ERROR, "Failed to encode AN-apdu IE \n");</span><br><span style="color: hsl(120, 100%, 40%);">+                 return -EINVAL;</span><br><span style="color: hsl(120, 100%, 40%);">+               }</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   if (gsup_msg->cause_rr_set) {</span><br><span style="color: hsl(120, 100%, 40%);">+              u8 = gsup_msg->cause_rr;</span><br><span style="color: hsl(120, 100%, 40%);">+           msgb_tlv_put(msg, OSMO_GSUP_CAUSE_RR_IE, sizeof(u8), &u8);</span><br><span style="color: hsl(120, 100%, 40%);">+        }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   if (gsup_msg->cause_bssap_set) {</span><br><span style="color: hsl(120, 100%, 40%);">+           u8 = gsup_msg->cause_bssap;</span><br><span style="color: hsl(120, 100%, 40%);">+                msgb_tlv_put(msg, OSMO_GSUP_CAUSE_BSSAP_IE, sizeof(u8), &u8);</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   if ((u8 = gsup_msg->cause_sm))</span><br><span style="color: hsl(120, 100%, 40%);">+             msgb_tlv_put(msg, OSMO_GSUP_CAUSE_SM_IE, sizeof(u8), &u8);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>     return 0;</span><br><span> }</span><br><span> </span><br><span>diff --git a/tests/gsup/gsup_test.c b/tests/gsup/gsup_test.c</span><br><span>index 0631a51..b84c88f 100644</span><br><span>--- a/tests/gsup/gsup_test.c</span><br><span>+++ b/tests/gsup/gsup_test.c</span><br><span>@@ -9,9 +9,16 @@</span><br><span> </span><br><span> /* Tests for osmo_gsup_messages.c */</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* Complete IEs used multiple times (sorted alphabetically)</span><br><span style="color: hsl(120, 100%, 40%);">+ * 1st byte: IEI from osmo_gsup_iei, 2nd byte: length */</span><br><span> #define TEST_IMSI_IE 0x01, 0x08, 0x21, 0x43, 0x65, 0x87, 0x09, 0x21, 0x43, 0xf5</span><br><span> #define TEST_IMSI_STR "123456789012345"</span><br><span> #define TEST_CLASS_SUBSCR_IE 0xa, 0x1, 0x1</span><br><span style="color: hsl(120, 100%, 40%);">+#define TEST_CLASS_INTER_MSC_IE 0xa, 0x1, 0x4</span><br><span style="color: hsl(120, 100%, 40%);">+#define TEST_MSISDN_IE 0x08, 0x07, 0x91, 0x94, 0x61, 0x46, 0x32, 0x24, 0x43</span><br><span style="color: hsl(120, 100%, 40%);">+#define TEST_AN_APDU_IE 0x62, 0x05, 0x01, 0x42, 0x42, 0x42, 0x42</span><br><span style="color: hsl(120, 100%, 40%);">+#define TEST_SOURCE_NAME_IE 0x60, 0x05, 'M', 'S', 'C', '-', 'A'</span><br><span style="color: hsl(120, 100%, 40%);">+#define TEST_DESTINATION_NAME_IE 0x61, 0x05, 'M', 'S', 'C', '-', 'B'</span><br><span> </span><br><span> static void test_gsup_messages_dec_enc(void)</span><br><span> {</span><br><span>@@ -66,8 +73,7 @@</span><br><span>    static const uint8_t update_location_res[] = {</span><br><span>               0x06,</span><br><span>                TEST_IMSI_IE,</span><br><span style="color: hsl(0, 100%, 40%);">-           0x08, 0x07, /* MSISDN of the subscriber */</span><br><span style="color: hsl(0, 100%, 40%);">-                      0x91, 0x94, 0x61, 0x46, 0x32, 0x24, 0x43,</span><br><span style="color: hsl(120, 100%, 40%);">+             TEST_MSISDN_IE,</span><br><span>              0x09, 0x07, /* HLR-Number of the subscriber */</span><br><span>                       0x91, 0x83, 0x52, 0x38, 0x48, 0x83, 0x93,</span><br><span>            0x04, 0x00, /* PDP info complete */</span><br><span>@@ -312,6 +318,217 @@</span><br><span>                  0x00, /* OSMO_GSUP_IMEI_RESULT_ACK */</span><br><span>        };</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+        /* Handover related test messages. Oftentimes they only differ in the</span><br><span style="color: hsl(120, 100%, 40%);">+  * AN_APDU_IE, which is mostly a blob in GSUP. To give a better example</span><br><span style="color: hsl(120, 100%, 40%);">+        * of how the messages can be used, I've added the information an_apdu</span><br><span style="color: hsl(120, 100%, 40%);">+     * holds in brackets (see osmo-msc.git's doc/interMSC_HO_GSUP_msgs.txt).</span><br><span style="color: hsl(120, 100%, 40%);">+   * The session states are from the ASCII art in this e-mail:</span><br><span style="color: hsl(120, 100%, 40%);">+   * https://lists.osmocom.org/pipermail/openbsc/2019-January/012653.html */</span><br><span style="color: hsl(120, 100%, 40%);">+    static const uint8_t send_e_prepare_handover_req[] = {</span><br><span style="color: hsl(120, 100%, 40%);">+                0x34, /* OSMO_GSUP_MSGT_E_PREPARE_HANDOVER_REQUEST */</span><br><span style="color: hsl(120, 100%, 40%);">+         TEST_IMSI_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+               /* Session ID and state (begin) */</span><br><span style="color: hsl(120, 100%, 40%);">+            0x30, 0x04, 0xde, 0xad, 0xbe, 0xef,</span><br><span style="color: hsl(120, 100%, 40%);">+           0x31, 0x01, 0x01,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           TEST_CLASS_INTER_MSC_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+              TEST_SOURCE_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+          TEST_DESTINATION_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+             TEST_AN_APDU_IE, /* (Handover Request) */</span><br><span style="color: hsl(120, 100%, 40%);">+     };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  static const uint8_t send_e_prepare_handover_err[] = {</span><br><span style="color: hsl(120, 100%, 40%);">+                0x35, /* OSMO_GSUP_MSGT_E_PREPARE_HANDOVER_ERROR */</span><br><span style="color: hsl(120, 100%, 40%);">+           TEST_IMSI_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+               /* Session ID and state (continue) */</span><br><span style="color: hsl(120, 100%, 40%);">+         0x30, 0x04, 0xde, 0xad, 0xbe, 0xef,</span><br><span style="color: hsl(120, 100%, 40%);">+           0x31, 0x01, 0x02,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           TEST_CLASS_INTER_MSC_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+              TEST_SOURCE_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+          TEST_DESTINATION_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           /* cause_bssap */</span><br><span style="color: hsl(120, 100%, 40%);">+             0x64, 0x01,</span><br><span style="color: hsl(120, 100%, 40%);">+                   0x51, /* GSM0808_CAUSE_INVALID_MESSAGE_CONTENTS */</span><br><span style="color: hsl(120, 100%, 40%);">+    };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  static const uint8_t send_e_prepare_handover_res[] = {</span><br><span style="color: hsl(120, 100%, 40%);">+                0x36, /* OSMO_GSUP_MSGT_E_PREPARE_HANDOVER_RESULT */</span><br><span style="color: hsl(120, 100%, 40%);">+          TEST_IMSI_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+         TEST_MSISDN_IE, /* (Handover Number) */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+             /* Session ID and state (continue) */</span><br><span style="color: hsl(120, 100%, 40%);">+         0x30, 0x04, 0xde, 0xad, 0xbe, 0xef,</span><br><span style="color: hsl(120, 100%, 40%);">+           0x31, 0x01, 0x02,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           TEST_CLASS_INTER_MSC_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+              TEST_SOURCE_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+          TEST_DESTINATION_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+             TEST_AN_APDU_IE, /* (Handover Request Ack) */</span><br><span style="color: hsl(120, 100%, 40%);">+ };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  static const uint8_t send_e_prepare_subsequent_handover_req[] = {</span><br><span style="color: hsl(120, 100%, 40%);">+             0x38, /* OSMO_GSUP_MSGT_E_PREPARE_SUBSEQUENT_HANDOVER_REQUEST */</span><br><span style="color: hsl(120, 100%, 40%);">+              TEST_IMSI_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+               /* Session ID and state (begin) */</span><br><span style="color: hsl(120, 100%, 40%);">+            0x30, 0x04, 0xde, 0xad, 0xbe, 0xef,</span><br><span style="color: hsl(120, 100%, 40%);">+           0x31, 0x01, 0x01,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           TEST_CLASS_INTER_MSC_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+              TEST_SOURCE_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+          TEST_DESTINATION_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+             TEST_AN_APDU_IE, /* (Handover Required) */</span><br><span style="color: hsl(120, 100%, 40%);">+    };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  static const uint8_t send_e_prepare_subsequent_handover_err[] = {</span><br><span style="color: hsl(120, 100%, 40%);">+             0x39, /* OSMO_GSUP_MSGT_E_PREPARE_SUBSEQUENT_HANDOVER_ERROR */</span><br><span style="color: hsl(120, 100%, 40%);">+                TEST_IMSI_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+               /* Session ID and state (continue) */</span><br><span style="color: hsl(120, 100%, 40%);">+         0x30, 0x04, 0xde, 0xad, 0xbe, 0xef,</span><br><span style="color: hsl(120, 100%, 40%);">+           0x31, 0x01, 0x02,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           TEST_CLASS_INTER_MSC_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+              TEST_SOURCE_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+          TEST_DESTINATION_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           /* cause_bssap */</span><br><span style="color: hsl(120, 100%, 40%);">+             0x64, 0x01,</span><br><span style="color: hsl(120, 100%, 40%);">+                   0x51, /* GSM0808_CAUSE_INVALID_MESSAGE_CONTENTS */</span><br><span style="color: hsl(120, 100%, 40%);">+    };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  static const uint8_t send_e_prepare_subsequent_handover_res[] = {</span><br><span style="color: hsl(120, 100%, 40%);">+             0x3A, /* OSMO_GSUP_MSGT_E_PREPARE_SUBSEQUENT_HANDOVER_RESULT */</span><br><span style="color: hsl(120, 100%, 40%);">+               TEST_IMSI_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+               /* Session ID and state (continue) */</span><br><span style="color: hsl(120, 100%, 40%);">+         0x30, 0x04, 0xde, 0xad, 0xbe, 0xef,</span><br><span style="color: hsl(120, 100%, 40%);">+           0x31, 0x01, 0x02,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           TEST_CLASS_INTER_MSC_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+              TEST_SOURCE_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+          TEST_DESTINATION_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+             TEST_AN_APDU_IE, /* (Handover Request Ack) */</span><br><span style="color: hsl(120, 100%, 40%);">+ };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  static const uint8_t send_e_send_end_signal_req[] = {</span><br><span style="color: hsl(120, 100%, 40%);">+         0x3C, /* OSMO_GSUP_MSGT_E_SEND_END_SIGNAL_REQUEST */</span><br><span style="color: hsl(120, 100%, 40%);">+          TEST_IMSI_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+               /* Session ID and state (end) */</span><br><span style="color: hsl(120, 100%, 40%);">+              0x30, 0x04, 0xde, 0xad, 0xbe, 0xef,</span><br><span style="color: hsl(120, 100%, 40%);">+           0x31, 0x01, 0x03,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           TEST_CLASS_INTER_MSC_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+              TEST_SOURCE_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+          TEST_DESTINATION_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+             TEST_AN_APDU_IE, /* (Handover Complete) */</span><br><span style="color: hsl(120, 100%, 40%);">+    };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  static const uint8_t send_e_send_end_signal_err[] = {</span><br><span style="color: hsl(120, 100%, 40%);">+         0x3D, /* OSMO_GSUP_MSGT_E_SEND_END_SIGNAL_ERROR */</span><br><span style="color: hsl(120, 100%, 40%);">+            TEST_IMSI_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+               /* Session ID and state (continue) */</span><br><span style="color: hsl(120, 100%, 40%);">+         0x30, 0x04, 0xde, 0xad, 0xbe, 0xef,</span><br><span style="color: hsl(120, 100%, 40%);">+           0x31, 0x01, 0x02,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           TEST_CLASS_INTER_MSC_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+              TEST_SOURCE_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+          TEST_DESTINATION_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           /* cause_bssap */</span><br><span style="color: hsl(120, 100%, 40%);">+             0x64, 0x01,</span><br><span style="color: hsl(120, 100%, 40%);">+                   0x51, /* GSM0808_CAUSE_INVALID_MESSAGE_CONTENTS */</span><br><span style="color: hsl(120, 100%, 40%);">+    };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  static const uint8_t send_e_process_access_signalling_req[] = {</span><br><span style="color: hsl(120, 100%, 40%);">+               0x40, /* OSMO_GSUP_MSGT_E_PROCESS_ACCESS_SIGNALLING_REQUEST */</span><br><span style="color: hsl(120, 100%, 40%);">+                TEST_IMSI_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+               /* Session ID and state (continue) */</span><br><span style="color: hsl(120, 100%, 40%);">+         0x30, 0x04, 0xde, 0xad, 0xbe, 0xef,</span><br><span style="color: hsl(120, 100%, 40%);">+           0x31, 0x01, 0x02,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           TEST_CLASS_INTER_MSC_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+              TEST_SOURCE_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+          TEST_DESTINATION_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+             TEST_AN_APDU_IE, /* (Handover Detect) */</span><br><span style="color: hsl(120, 100%, 40%);">+      };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  static const uint8_t send_e_send_end_signal_res[] = {</span><br><span style="color: hsl(120, 100%, 40%);">+         0x3E, /* OSMO_GSUP_MSGT_E_SEND_END_SIGNAL_RESULT */</span><br><span style="color: hsl(120, 100%, 40%);">+           TEST_IMSI_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+               /* Session ID and state (end) */</span><br><span style="color: hsl(120, 100%, 40%);">+              0x30, 0x04, 0xde, 0xad, 0xbe, 0xef,</span><br><span style="color: hsl(120, 100%, 40%);">+           0x31, 0x01, 0x03,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           TEST_CLASS_INTER_MSC_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+              TEST_SOURCE_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+          TEST_DESTINATION_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+             TEST_AN_APDU_IE, /* (Handover Complete) */</span><br><span style="color: hsl(120, 100%, 40%);">+    };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  static const uint8_t send_e_forward_access_signalling_req [] = {</span><br><span style="color: hsl(120, 100%, 40%);">+              0x44, /* OSMO_GSUP_MSGT_E_FORWARD_ACCESS_SIGNALLING_REQUEST */</span><br><span style="color: hsl(120, 100%, 40%);">+                TEST_IMSI_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+               /* Session ID and state (continue) */</span><br><span style="color: hsl(120, 100%, 40%);">+         0x30, 0x04, 0xde, 0xad, 0xbe, 0xef,</span><br><span style="color: hsl(120, 100%, 40%);">+           0x31, 0x01, 0x02,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           TEST_CLASS_INTER_MSC_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+              TEST_SOURCE_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+          TEST_DESTINATION_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+             TEST_AN_APDU_IE, /* (DTAP, e.g. CC, SMS, ...) */</span><br><span style="color: hsl(120, 100%, 40%);">+      };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  static const uint8_t send_e_close[] = {</span><br><span style="color: hsl(120, 100%, 40%);">+               0x47, /* OSMO_GSUP_MSGT_E_CLOSE */</span><br><span style="color: hsl(120, 100%, 40%);">+            TEST_IMSI_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+               /* Session ID and state (end) */</span><br><span style="color: hsl(120, 100%, 40%);">+              0x30, 0x04, 0xde, 0xad, 0xbe, 0xef,</span><br><span style="color: hsl(120, 100%, 40%);">+           0x31, 0x01, 0x03,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           TEST_CLASS_INTER_MSC_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+              TEST_SOURCE_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+          TEST_DESTINATION_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+     };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  static const uint8_t send_e_abort[] = {</span><br><span style="color: hsl(120, 100%, 40%);">+               0x4B, /* OSMO_GSUP_MSGT_E_ABORT */</span><br><span style="color: hsl(120, 100%, 40%);">+            TEST_IMSI_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+               /* Session ID and state (end) */</span><br><span style="color: hsl(120, 100%, 40%);">+              0x30, 0x04, 0xde, 0xad, 0xbe, 0xef,</span><br><span style="color: hsl(120, 100%, 40%);">+           0x31, 0x01, 0x03,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           TEST_CLASS_INTER_MSC_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+            /* cause_bssap */</span><br><span style="color: hsl(120, 100%, 40%);">+             0x64, 0x01,</span><br><span style="color: hsl(120, 100%, 40%);">+                   0x51, /* GSM0808_CAUSE_INVALID_MESSAGE_CONTENTS */</span><br><span style="color: hsl(120, 100%, 40%);">+    };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  static const uint8_t send_e_routing_error[] = {</span><br><span style="color: hsl(120, 100%, 40%);">+               0x4E, /* OSMO_GSUP_MSGT_E_ROUTING_ERROR */</span><br><span style="color: hsl(120, 100%, 40%);">+            TEST_IMSI_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+               /* Session ID and state (end) */</span><br><span style="color: hsl(120, 100%, 40%);">+              0x30, 0x04, 0xde, 0xad, 0xbe, 0xef,</span><br><span style="color: hsl(120, 100%, 40%);">+           0x31, 0x01, 0x03,</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           TEST_CLASS_INTER_MSC_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+              TEST_SOURCE_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+          TEST_DESTINATION_NAME_IE,</span><br><span style="color: hsl(120, 100%, 40%);">+     };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>         static const struct test {</span><br><span>           char *name;</span><br><span>          const uint8_t *data;</span><br><span>@@ -367,6 +584,34 @@</span><br><span>                  send_check_imei_err, sizeof(send_check_imei_err)},</span><br><span>           {"Check IMEI Result",</span><br><span>                      send_check_imei_res, sizeof(send_check_imei_res)},</span><br><span style="color: hsl(120, 100%, 40%);">+            {"E Prepare Handover Request",</span><br><span style="color: hsl(120, 100%, 40%);">+                      send_e_prepare_handover_req, sizeof(send_e_prepare_handover_req)},</span><br><span style="color: hsl(120, 100%, 40%);">+            {"E Prepare Handover Error",</span><br><span style="color: hsl(120, 100%, 40%);">+                        send_e_prepare_handover_err, sizeof(send_e_prepare_handover_err)},</span><br><span style="color: hsl(120, 100%, 40%);">+            {"E Prepare Handover Result",</span><br><span style="color: hsl(120, 100%, 40%);">+                       send_e_prepare_handover_res, sizeof(send_e_prepare_handover_res)},</span><br><span style="color: hsl(120, 100%, 40%);">+            {"E Prepare Subsequent Handover Request",</span><br><span style="color: hsl(120, 100%, 40%);">+                   send_e_prepare_subsequent_handover_req, sizeof(send_e_prepare_subsequent_handover_req)},</span><br><span style="color: hsl(120, 100%, 40%);">+              {"E Prepare Subsequent Handover Error",</span><br><span style="color: hsl(120, 100%, 40%);">+                     send_e_prepare_subsequent_handover_err, sizeof(send_e_prepare_subsequent_handover_err)},</span><br><span style="color: hsl(120, 100%, 40%);">+              {"E Prepare Subsequent Handover Result",</span><br><span style="color: hsl(120, 100%, 40%);">+                    send_e_prepare_subsequent_handover_res, sizeof(send_e_prepare_subsequent_handover_res)},</span><br><span style="color: hsl(120, 100%, 40%);">+              {"E Send End Signal Request",</span><br><span style="color: hsl(120, 100%, 40%);">+                       send_e_send_end_signal_req, sizeof(send_e_send_end_signal_req)},</span><br><span style="color: hsl(120, 100%, 40%);">+              {"E Send End Signal Error",</span><br><span style="color: hsl(120, 100%, 40%);">+                 send_e_send_end_signal_err, sizeof(send_e_send_end_signal_err)},</span><br><span style="color: hsl(120, 100%, 40%);">+              {"E Send End Signal Result",</span><br><span style="color: hsl(120, 100%, 40%);">+                        send_e_send_end_signal_res, sizeof(send_e_send_end_signal_res)},</span><br><span style="color: hsl(120, 100%, 40%);">+              {"E Process Access Signalling Request",</span><br><span style="color: hsl(120, 100%, 40%);">+                     send_e_process_access_signalling_req, sizeof(send_e_process_access_signalling_req)},</span><br><span style="color: hsl(120, 100%, 40%);">+          {"E Forward Access Signalling Request",</span><br><span style="color: hsl(120, 100%, 40%);">+                     send_e_forward_access_signalling_req, sizeof(send_e_forward_access_signalling_req)},</span><br><span style="color: hsl(120, 100%, 40%);">+          {"E Close",</span><br><span style="color: hsl(120, 100%, 40%);">+                 send_e_close, sizeof(send_e_close)},</span><br><span style="color: hsl(120, 100%, 40%);">+          {"E Abort",</span><br><span style="color: hsl(120, 100%, 40%);">+                 send_e_abort, sizeof(send_e_abort)},</span><br><span style="color: hsl(120, 100%, 40%);">+          {"E Routing Error",</span><br><span style="color: hsl(120, 100%, 40%);">+                 send_e_routing_error, sizeof(send_e_routing_error)},</span><br><span>         };</span><br><span> </span><br><span>       printf("Test GSUP message decoding/encoding\n");</span><br><span>diff --git a/tests/gsup/gsup_test.err b/tests/gsup/gsup_test.err</span><br><span>index 9283823..e5fe6ee 100644</span><br><span>--- a/tests/gsup/gsup_test.err</span><br><span>+++ b/tests/gsup/gsup_test.err</span><br><span>@@ -73,6 +73,48 @@</span><br><span>   generated message: 32 01 08 21 43 65 87 09 21 43 f5 51 01 00 </span><br><span>   original message:  32 01 08 21 43 65 87 09 21 43 f5 51 01 00 </span><br><span>   IMSI:              123456789012345</span><br><span style="color: hsl(120, 100%, 40%);">+  generated message: 34 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 01 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 62 05 01 42 42 42 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  original message:  34 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 01 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 62 05 01 42 42 42 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  IMSI:              123456789012345</span><br><span style="color: hsl(120, 100%, 40%);">+  generated message: 35 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 02 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 64 01 51 </span><br><span style="color: hsl(120, 100%, 40%);">+  original message:  35 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 02 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 64 01 51 </span><br><span style="color: hsl(120, 100%, 40%);">+  IMSI:              123456789012345</span><br><span style="color: hsl(120, 100%, 40%);">+  generated message: 36 01 08 21 43 65 87 09 21 43 f5 08 07 91 94 61 46 32 24 43 30 04 de ad be ef 31 01 02 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 62 05 01 42 42 42 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  original message:  36 01 08 21 43 65 87 09 21 43 f5 08 07 91 94 61 46 32 24 43 30 04 de ad be ef 31 01 02 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 62 05 01 42 42 42 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  IMSI:              123456789012345</span><br><span style="color: hsl(120, 100%, 40%);">+  generated message: 38 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 01 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 62 05 01 42 42 42 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  original message:  38 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 01 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 62 05 01 42 42 42 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  IMSI:              123456789012345</span><br><span style="color: hsl(120, 100%, 40%);">+  generated message: 39 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 02 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 64 01 51 </span><br><span style="color: hsl(120, 100%, 40%);">+  original message:  39 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 02 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 64 01 51 </span><br><span style="color: hsl(120, 100%, 40%);">+  IMSI:              123456789012345</span><br><span style="color: hsl(120, 100%, 40%);">+  generated message: 3a 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 02 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 62 05 01 42 42 42 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  original message:  3a 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 02 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 62 05 01 42 42 42 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  IMSI:              123456789012345</span><br><span style="color: hsl(120, 100%, 40%);">+  generated message: 3c 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 03 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 62 05 01 42 42 42 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  original message:  3c 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 03 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 62 05 01 42 42 42 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  IMSI:              123456789012345</span><br><span style="color: hsl(120, 100%, 40%);">+  generated message: 3d 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 02 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 64 01 51 </span><br><span style="color: hsl(120, 100%, 40%);">+  original message:  3d 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 02 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 64 01 51 </span><br><span style="color: hsl(120, 100%, 40%);">+  IMSI:              123456789012345</span><br><span style="color: hsl(120, 100%, 40%);">+  generated message: 3e 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 03 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 62 05 01 42 42 42 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  original message:  3e 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 03 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 62 05 01 42 42 42 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  IMSI:              123456789012345</span><br><span style="color: hsl(120, 100%, 40%);">+  generated message: 40 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 02 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 62 05 01 42 42 42 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  original message:  40 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 02 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 62 05 01 42 42 42 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  IMSI:              123456789012345</span><br><span style="color: hsl(120, 100%, 40%);">+  generated message: 44 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 02 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 62 05 01 42 42 42 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  original message:  44 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 02 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 62 05 01 42 42 42 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  IMSI:              123456789012345</span><br><span style="color: hsl(120, 100%, 40%);">+  generated message: 47 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 03 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  original message:  47 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 03 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  IMSI:              123456789012345</span><br><span style="color: hsl(120, 100%, 40%);">+  generated message: 4b 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 03 0a 01 04 64 01 51 </span><br><span style="color: hsl(120, 100%, 40%);">+  original message:  4b 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 03 0a 01 04 64 01 51 </span><br><span style="color: hsl(120, 100%, 40%);">+  IMSI:              123456789012345</span><br><span style="color: hsl(120, 100%, 40%);">+  generated message: 4e 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 03 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  original message:  4e 01 08 21 43 65 87 09 21 43 f5 30 04 de ad be ef 31 01 03 0a 01 04 60 05 4d 53 43 2d 41 61 05 4d 53 43 2d 42 </span><br><span style="color: hsl(120, 100%, 40%);">+  IMSI:              123456789012345</span><br><span>   message 0: tested 14 truncations, 13 parse failures</span><br><span>   message 1: tested 14 truncations, 13 parse failures</span><br><span>   message 2: tested 83 truncations, 81 parse failures</span><br><span>@@ -98,19 +140,33 @@</span><br><span>   message 22: tested 22 truncations, 21 parse failures</span><br><span>   message 23: tested 14 truncations, 13 parse failures</span><br><span>   message 24: tested 14 truncations, 13 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 25: tested 44 truncations, 38 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 26: tested 40 truncations, 34 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 27: tested 53 truncations, 46 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 28: tested 44 truncations, 38 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 29: tested 40 truncations, 34 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 30: tested 44 truncations, 38 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 31: tested 44 truncations, 38 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 32: tested 40 truncations, 34 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 33: tested 44 truncations, 38 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 34: tested 44 truncations, 38 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 35: tested 44 truncations, 38 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 36: tested 37 truncations, 32 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 37: tested 26 truncations, 22 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 38: tested 37 truncations, 32 parse failures</span><br><span> DLGSUP Stopping DLGSUP logging</span><br><span>   message 0: tested 3584 modifications, 771 parse failures</span><br><span>   message 1: tested 3584 modifications, 770 parse failures</span><br><span>   message 2: tested 21248 modifications, 2575 parse failures</span><br><span>   message 3: tested 2816 modifications, 510 parse failures</span><br><span>   message 4: tested 3584 modifications, 770 parse failures</span><br><span style="color: hsl(0, 100%, 40%);">-  message 5: tested 20736 modifications, 4022 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 5: tested 20736 modifications, 4023 parse failures</span><br><span>   message 6: tested 3584 modifications, 771 parse failures</span><br><span>   message 7: tested 3584 modifications, 770 parse failures</span><br><span>   message 8: tested 2816 modifications, 510 parse failures</span><br><span>   message 9: tested 2816 modifications, 510 parse failures</span><br><span>   message 10: tested 3584 modifications, 770 parse failures</span><br><span style="color: hsl(0, 100%, 40%);">-  message 11: tested 3328 modifications, 769 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 11: tested 3328 modifications, 770 parse failures</span><br><span>   message 12: tested 54016 modifications, 4626 parse failures</span><br><span>   message 13: tested 11520 modifications, 1026 parse failures</span><br><span>   message 14: tested 5120 modifications, 1030 parse failures</span><br><span>@@ -124,3 +180,17 @@</span><br><span>   message 22: tested 5632 modifications, 771 parse failures</span><br><span>   message 23: tested 3584 modifications, 770 parse failures</span><br><span>   message 24: tested 3584 modifications, 771 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 25: tested 11264 modifications, 2058 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 26: tested 10240 modifications, 2060 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 27: tested 13568 modifications, 2313 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 28: tested 11264 modifications, 2058 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 29: tested 10240 modifications, 2060 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 30: tested 11264 modifications, 2058 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 31: tested 11264 modifications, 2057 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 32: tested 10240 modifications, 2060 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 33: tested 11264 modifications, 2057 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 34: tested 11264 modifications, 2058 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 35: tested 11264 modifications, 2058 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 36: tested 9472 modifications, 1803 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 37: tested 6656 modifications, 1546 parse failures</span><br><span style="color: hsl(120, 100%, 40%);">+  message 38: tested 9472 modifications, 1803 parse failures</span><br><span>diff --git a/tests/gsup/gsup_test.ok b/tests/gsup/gsup_test.ok</span><br><span>index 70f723c..db8bc2f 100644</span><br><span>--- a/tests/gsup/gsup_test.ok</span><br><span>+++ b/tests/gsup/gsup_test.ok</span><br><span>@@ -49,4 +49,32 @@</span><br><span>           Check IMEI Error OK</span><br><span>   Testing Check IMEI Result</span><br><span>           Check IMEI Result OK</span><br><span style="color: hsl(120, 100%, 40%);">+  Testing E Prepare Handover Request</span><br><span style="color: hsl(120, 100%, 40%);">+          E Prepare Handover Request OK</span><br><span style="color: hsl(120, 100%, 40%);">+  Testing E Prepare Handover Error</span><br><span style="color: hsl(120, 100%, 40%);">+          E Prepare Handover Error OK</span><br><span style="color: hsl(120, 100%, 40%);">+  Testing E Prepare Handover Result</span><br><span style="color: hsl(120, 100%, 40%);">+          E Prepare Handover Result OK</span><br><span style="color: hsl(120, 100%, 40%);">+  Testing E Prepare Subsequent Handover Request</span><br><span style="color: hsl(120, 100%, 40%);">+          E Prepare Subsequent Handover Request OK</span><br><span style="color: hsl(120, 100%, 40%);">+  Testing E Prepare Subsequent Handover Error</span><br><span style="color: hsl(120, 100%, 40%);">+          E Prepare Subsequent Handover Error OK</span><br><span style="color: hsl(120, 100%, 40%);">+  Testing E Prepare Subsequent Handover Result</span><br><span style="color: hsl(120, 100%, 40%);">+          E Prepare Subsequent Handover Result OK</span><br><span style="color: hsl(120, 100%, 40%);">+  Testing E Send End Signal Request</span><br><span style="color: hsl(120, 100%, 40%);">+          E Send End Signal Request OK</span><br><span style="color: hsl(120, 100%, 40%);">+  Testing E Send End Signal Error</span><br><span style="color: hsl(120, 100%, 40%);">+          E Send End Signal Error OK</span><br><span style="color: hsl(120, 100%, 40%);">+  Testing E Send End Signal Result</span><br><span style="color: hsl(120, 100%, 40%);">+          E Send End Signal Result OK</span><br><span style="color: hsl(120, 100%, 40%);">+  Testing E Process Access Signalling Request</span><br><span style="color: hsl(120, 100%, 40%);">+          E Process Access Signalling Request OK</span><br><span style="color: hsl(120, 100%, 40%);">+  Testing E Forward Access Signalling Request</span><br><span style="color: hsl(120, 100%, 40%);">+          E Forward Access Signalling Request OK</span><br><span style="color: hsl(120, 100%, 40%);">+  Testing E Close</span><br><span style="color: hsl(120, 100%, 40%);">+          E Close OK</span><br><span style="color: hsl(120, 100%, 40%);">+  Testing E Abort</span><br><span style="color: hsl(120, 100%, 40%);">+          E Abort OK</span><br><span style="color: hsl(120, 100%, 40%);">+  Testing E Routing Error</span><br><span style="color: hsl(120, 100%, 40%);">+          E Routing Error OK</span><br><span> Done.</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12860">change 12860</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/12860"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ic00b0601eacff6d72927cea51767801142ee75db </div>
<div style="display:none"> Gerrit-Change-Number: 12860 </div>
<div style="display:none"> Gerrit-PatchSet: 10 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Daniel Willmann <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Max <suraev@alumni.ntnu.no> </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>