Skip to content

Commit

Permalink
make delete_sgi_session always delete the PFCP session
Browse files Browse the repository at this point in the history
The only reason not to send the deletion request is when
the UPF just failed.
  • Loading branch information
RoadRunnr committed Jul 16, 2019
1 parent 6e97b22 commit 2403fe4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ergw_gsn_lib.erl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
%%% Sx DP API
%%%===================================================================

delete_sgi_session(normal, Ctx, PCtx) ->
delete_sgi_session(Reason, Ctx, PCtx)
when Reason /= upf_failure ->
Req = #pfcp{version = v1, type = session_deletion_request, ie = []},
case ergw_sx_node:call(PCtx, Req, Ctx) of
#pfcp{type = session_deletion_response,
Expand Down

0 comments on commit 2403fe4

Please sign in to comment.