fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37806?usp=email )


Change subject: s1ap_proxy: handle E-RAB RELEASE INDICATION
......................................................................

s1ap_proxy: handle E-RAB RELEASE INDICATION

TODO: add unit tests

Change-Id: I51832d1cbb43f053fe70a9e3e95c453cf4093f87
---
M src/s1ap_proxy.erl
1 file changed, 16 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/erlang/osmo-s1gw 
refs/changes/06/37806/1

diff --git a/src/s1ap_proxy.erl b/src/s1ap_proxy.erl
index 50cc067..f4f668c 100644
--- a/src/s1ap_proxy.erl
+++ b/src/s1ap_proxy.erl
@@ -163,6 +163,16 @@
     NewContent = Content#'E-RABReleaseResponse'{protocolIEs = IEs},
     handle_pdu_new(Data, {Outcome, Pdu#'SuccessfulOutcome'{value = 
NewContent}}, S1);

+%% 9.1.3.7 E-RAB RELEASE INDICATION
+handle_pdu(Data, {Outcome = initiatingMessage,
+                  #'InitiatingMessage'{procedureCode = 
?'id-E-RABReleaseIndication',
+                                       value = Content} = Pdu}, S0) ->
+    ?LOG_DEBUG("Processing E-RAB RELEASE INDICATION"),
+    {IEs, S1} = handle_ies(Content#'E-RABReleaseIndication'.protocolIEs,
+                           ?'id-E-RABReleasedList', S0),
+    NewContent = Content#'E-RABReleaseIndication'{protocolIEs = IEs},
+    handle_pdu_new(Data, {Outcome, Pdu#'InitiatingMessage'{value = 
NewContent}}, S1);
+
 %% 9.1.3.8 E-RAB MODIFICATION INDICATION
 handle_pdu(Data, {Outcome = initiatingMessage,
                   #'InitiatingMessage'{procedureCode = 
?'id-E-RABModificationIndication',
@@ -288,6 +298,12 @@
     end,
     {Content, S};

+%% 9.1.3.7 E-RAB RELEASE INDICATION related IEs
+handle_ie(#'ProtocolIE-Field'{id = ?'id-E-RABReleasedList',
+                              value = Content}, S) ->
+    %% This IE contains a list of E-RABItem
+    handle_ies(Content, ?'id-E-RABItem', S);
+
 %% E-RAB MODIFICATION INDICATION related IEs
 handle_ie(#'ProtocolIE-Field'{id = ?'id-E-RABToBeModifiedListBearerModInd',
                               value = Content}, S) ->

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

Gerrit-MessageType: newchange
Gerrit-Project: erlang/osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: I51832d1cbb43f053fe70a9e3e95c453cf4093f87
Gerrit-Change-Number: 37806
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>

Reply via email to