#### Description In a scalable `Kamailio` architecture that uses `DMQ` to share dialogs (profiles, essentialy) between the peers, in some cases could make sense to remove dialogs that were created and synced from other peers. Example: If a peer goes down and didn't go up again (or in a feasible time), could make sense to remove its synced dialogs (example: `dmq` used to implement a shared dialog counter per provider).
To allow it, a new function was introduced in `dialog` module: `dlg_remove_dialogs_from_node`. With the new `event_routes`: `peer-up` and `peer-up`, we can easily use this new function to clean the dialogs based on the peer state. #### Pre-Submission Checklist - [x] Commit message has the format required by CONTRIBUTING guide - [x] Commits are split per component (core, individual modules, libs, utils, ...) - [x] Each component has a single commit (if not, squash them into one commit) - [x] Code is formatted with `clang-format` using the config file `.clang-format` from source code folder - [x] 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) - [x] New feature (non-breaking change which adds new functionality) - [ ] Breaking change (fix or feature that would change existing functionality) #### Checklist: - [ ] PR should be backported to stable branches - [x] Tested changes locally - [ ] Related to issue You can view, comment on, or merge this pull request online at: https://github.com/kamailio/kamailio/pull/4754 -- Commit Summary -- * dialog: add new function dlg_remove_dialogs_from_node * dialog: update with master -- File Changes -- M src/modules/dialog/dialog.c (22) M src/modules/dialog/dlg_dmq.c (82) M src/modules/dialog/dlg_dmq.h (1) M src/modules/dialog/dlg_hash.c (2) M src/modules/dialog/dlg_hash.h (1) M src/modules/dialog/doc/dialog_admin.xml (40) -- Patch Links -- https://github.com/kamailio/kamailio/pull/4754.patch https://github.com/kamailio/kamailio/pull/4754.diff -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/4754 You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/pull/[email protected]>
_______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
