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

dialog keep-alive only for own records #3023

Merged
merged 3 commits into from Feb 11, 2022
Merged

dialog keep-alive only for own records #3023

merged 3 commits into from Feb 11, 2022

Conversation

Riccardo-78
Copy link
Contributor

Pre-Submission Checklist

  • Commit message has the format required by CONTRIBUTING guide
  • Commits are split per component (core, individual modules, libs, utils, ...)
  • Each component has a single commit (if not, squash them into one commit)
  • No commits to README files for modules (changes must be done to docbook files
    in doc/ subfolder, the README file is autogenerated)

Type Of Change

  • Small bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would change existing functionality)

Checklist:

Description

Skip keepalive check if dialog is not local, do the same in case of dialog timeout

@miconda
Copy link
Member

miconda commented Feb 10, 2022

Thanks for the PR! I would suggest to add a module parameter to control this behaviour, to avoid looking up the socket every time. Also, there are cases when a restart is done to change the ip addresses and if the Routes were with FQDN, it is wanted to continue processing dialogs even if the old ip is not found.

@lgtm-com
Copy link

lgtm-com bot commented Feb 10, 2022

This pull request introduces 2 alerts when merging eb80bcb into b3314c8 - view on LGTM.com

new alerts:

  • 2 for Expression has no effect

@Riccardo-78
Copy link
Contributor Author

it makes sense, added new parameter (ignore_non_local_dlg) to control this behaviour

@miconda
Copy link
Member

miconda commented Feb 11, 2022

Thanks!

I will merge it soon, but then I will rename the new parameter to something like dlg_filter_mode and behave on a flags-like value, because it could be useful to reuse it for other purposes, like having a filter mode where dialogs are not loaded from database if they don't have local socket.

@miconda miconda merged commit e530ad4 into kamailio:master Feb 11, 2022
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.

None yet

2 participants