Skip to content

Commit

Permalink
Add deleted_by_upf for default termination cause mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
vkatsuba authored and vkatsuba committed Jun 4, 2021
1 parent 8728188 commit 3920c3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/ergw_aaa_diameter.erl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
-include_lib("diameter/include/diameter_gen_base_rfc6733.hrl").
-include("include/diameter_3gpp_ts29_061_sgi.hrl").

%% RFC: https://tools.ietf.org/html/rfc3588#section-8.15
%% RFC:
%% * https://tools.ietf.org/html/rfc3588#section-8.15
%% * https://www.iana.org/assignments/aaa-parameters/aaa-parameters.xhtml#aaa-parameters-16
-define(DEFAULT_TERMINATION_CAUSE_MAPPING, [
{normal, 1}, % ?'DIAMETER_BASE_TERMINATION-CAUSE_LOGOUT'
{administrative, 4}, % ?'DIAMETER_BASE_TERMINATION-CAUSE_ADMINISTRATIVE'
Expand All @@ -38,7 +40,8 @@
{conn_error, 1}, % ?'DIAMETER_BASE_TERMINATION-CAUSE_LOGOUT'
{rate_limit, 1}, % ?'DIAMETER_BASE_TERMINATION-CAUSE_LOGOUT'
{ocs_hold_end, 1}, % ?'DIAMETER_BASE_TERMINATION-CAUSE_LOGOUT'
{peer_reject, 1} % ?'DIAMETER_BASE_TERMINATION-CAUSE_LOGOUT'
{peer_reject, 1}, % ?'DIAMETER_BASE_TERMINATION-CAUSE_LOGOUT'
{deleted_by_upf, 19} % 'NAS_ERROR'
]).

-define(VENDOR_ID_3GPP, 10415).
Expand Down
3 changes: 2 additions & 1 deletion src/ergw_aaa_radius.erl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
{conn_error, 10},
{rate_limit, 10},
{ocs_hold_end, 10},
{peer_reject, 10}
{peer_reject, 10},
{deleted_by_upf, 9}
]).

-define(DefaultOptions, [{server, undefined},
Expand Down

0 comments on commit 3920c3e

Please sign in to comment.