Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch session state to stopped after receiving a DIAMETER error #200

Merged
merged 2 commits into from
Jan 26, 2023

Conversation

RoadRunnr
Copy link
Member

@RoadRunnr RoadRunnr commented Jan 24, 2023

This ensures that session do not send termination requests after the session
was stopped by a previous error.

@RoadRunnr RoadRunnr force-pushed the fix/CENNSO-229/proper-session-stop branch from ee27004 to 286a333 Compare January 24, 2023 08:25
@RoadRunnr RoadRunnr changed the title Fix/cennso 229/proper session stop switch session state to stopped after receiving a DIAMETER error Jan 24, 2023
@RoadRunnr RoadRunnr force-pushed the fix/CENNSO-229/proper-session-stop branch from 286a333 to 576492f Compare January 24, 2023 08:39
@RoadRunnr RoadRunnr marked this pull request as ready for review January 24, 2023 08:39
@RoadRunnr RoadRunnr requested a review from a team as a code owner January 24, 2023 08:39
ebengt
ebengt previously approved these changes Jan 24, 2023
@@ -292,7 +292,7 @@ handle_aca(['ACA' | #{'Result-Code' := ?'DIAMETER_BASE_RESULT-CODE_SUCCESS'} = A
{ok, Session, Events, State};
handle_aca([Answer | #{'Result-Code' := Code}], Session, Events, _Opts, State)
when Answer =:= 'ACA'; Answer =:= 'answer-message' ->
{{fail, Code}, Session, Events, State};
{{fail, Code}, Session, Events, State#state{state = stopped}};
handle_aca({error, _} = Result, Session, Events, _Opts, State) ->
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is different for Rf?
Nasraq set state to stopped for handle_aca({error, _}
Rf does not.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

valid point. I'll rework the change to apply the stop logic only on Requests/Responses that are authorisation related.
Error in Accounting requests (Rf and NASREQ ACR/ACA should IMHO no lead to stop of the session).

This ensures that session do not send termination requests after the session
was stopped by a previous error.
@javiermtorres
Copy link

No CCR-T is sent on Gy dialogues failing upon init.

@javiermtorres javiermtorres merged commit d1efc60 into master Jan 26, 2023
@javiermtorres javiermtorres deleted the fix/CENNSO-229/proper-session-stop branch January 26, 2023 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants