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


Change subject: aaa_ue_fsm: S6b AAR should trigger SWx SAR with type=PGW_UPDATE
......................................................................

aaa_ue_fsm: S6b AAR should trigger SWx SAR with type=PGW_UPDATE

Change-Id: If0f0bfa21117c65c0ef7c831746b50eb83908778
---
M src/aaa_ue_fsm.erl
1 file changed, 11 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/erlang/osmo-epdg 
refs/changes/63/35863/1

diff --git a/src/aaa_ue_fsm.erl b/src/aaa_ue_fsm.erl
index c043cdb..e395d58 100644
--- a/src/aaa_ue_fsm.erl
+++ b/src/aaa_ue_fsm.erl
@@ -186,7 +186,7 @@
 state_authenticated({call, {Pid, _Tag} = From}, {rx_s6b_aar, Apn}, Data) ->
         lager:info("ue_fsm state_authenticated event=rx_s6b_aar Apn=~p, ~p~n", 
[Apn, Data]),
         case aaa_diameter_swx:server_assignment_request(Data#ue_fsm_data.imsi,
-                                                        
?'DIAMETER_CX_SERVER-ASSIGNMENT-TYPE_REGISTRATION',
+                                                        
?'DIAMETER_CX_SERVER-ASSIGNMENT-TYPE_PGW_UPDATE',
                                                         Apn) of
         ok ->   Data1 = Data#ue_fsm_data{s6b_resp_pid = Pid, apn = Apn},
                 {next_state, state_authenticated_wait_swx_saa, Data1, 
[{reply,From,ok}]};
@@ -246,7 +246,7 @@
 state_authenticated_wait_swx_saa({call, From}, {rx_swx_saa, SAType, 
ResultCode}, Data) ->
         lager:info("ue_fsm state_authenticated_wait_swx_saa event=rx_swx_saa 
SAType=~p ResulCode=~p, ~p~n", [SAType, ResultCode, Data]),
         case SAType of
-        ?'DIAMETER_CX_SERVER-ASSIGNMENT-TYPE_REGISTRATION' ->
+        ?'DIAMETER_CX_SERVER-ASSIGNMENT-TYPE_PGW_UPDATE' ->
                 aaa_diameter_s6b:tx_aa_answer(Data#ue_fsm_data.s6b_resp_pid, 
ResultCode),
                 Data1 = Data#ue_fsm_data{pgw_sess_active = true, s6b_resp_pid 
= undefined},
                 {next_state, state_authenticated, Data1, [{reply,From,ok}]};

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

Gerrit-Project: erlang/osmo-epdg
Gerrit-Branch: master
Gerrit-Change-Id: If0f0bfa21117c65c0ef7c831746b50eb83908778
Gerrit-Change-Number: 35863
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to