aboutsummaryrefslogtreecommitdiffstats
path: root/src/gsm/gsup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gsm/gsup.c')
-rw-r--r--src/gsm/gsup.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gsm/gsup.c b/src/gsm/gsup.c
index e4339971..c1c99923 100644
--- a/src/gsm/gsup.c
+++ b/src/gsm/gsup.c
@@ -75,6 +75,10 @@ const struct value_string osmo_gsup_message_type_names[] = {
OSMO_VALUE_STRING(OSMO_GSUP_MSGT_MT_FORWARD_SM_ERROR),
OSMO_VALUE_STRING(OSMO_GSUP_MSGT_MT_FORWARD_SM_RESULT),
+ OSMO_VALUE_STRING(OSMO_GSUP_MSGT_READY_FOR_SM_REQUEST),
+ OSMO_VALUE_STRING(OSMO_GSUP_MSGT_READY_FOR_SM_ERROR),
+ OSMO_VALUE_STRING(OSMO_GSUP_MSGT_READY_FOR_SM_RESULT),
+
{ 0, NULL }
};
@@ -471,6 +475,10 @@ int osmo_gsup_decode(const uint8_t *const_data, size_t data_len,
gsup_msg->sm_rp_cause = value;
break;
+ case OSMO_GSUP_SM_ALERT_RSN_IE:
+ gsup_msg->sm_alert_rsn = *value;
+ break;
+
default:
LOGP(DLGSUP, LOGL_NOTICE,
"GSUP IE type %d unknown\n", iei);
@@ -699,6 +707,11 @@ int osmo_gsup_encode(struct msgb *msg, const struct osmo_gsup_message *gsup_msg)
sizeof(*gsup_msg->sm_rp_cause), gsup_msg->sm_rp_cause);
}
+ if ((u8 = gsup_msg->sm_alert_rsn)) {
+ msgb_tlv_put(msg, OSMO_GSUP_SM_ALERT_RSN_IE,
+ sizeof(u8), &u8);
+ }
+
return 0;
}