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

implement hash table for tracking RTPEngine node allocations #3563

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

spacetourist
Copy link
Contributor

Summary
This change allows RTP instances to be disabled safely without causing recalculation of allocations for existing dialogs, improving maintainability. The main driver is that I want to be able to disable instances to drain calls and perform maintenance on a 24 hour system (i.e. patching)

Details
The code was ported from Kamailio (kamailio/kamailio#390) which offers this implementation, and then modifications were required to work correctly with the latest OpenSIPs codebase.

Note that this is a work in process I am submitting for initial review as I need to deliver this for my network, I'm not sure if you accept "Kamilio inspired" code but would appreciate a review and I can see this being useful to others. Documentation will be added as I continue work..

Solution
By implementing a hash table the module will now track all connected calls in a hash table of configurable size. This will be reviewed for all subsequent RTPEngine interactions and when found the existing allocation is preserved.

Compatibility
This should work as normal and the hash table has been made optional.

Closing issues
closes #3036

this change allows RTP instances to be disabled safely without causing recalculation of allocations for existing dialogs, improving maintainability
unclear how previous master builds were a success?
@spacetourist
Copy link
Contributor Author

I'm not sure how to clear the remaining build tests. Happy to look with some guidance

prefix_tree.o: file not recognized: file format not recognized

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.

[FEATURE] RTPEngine pool selection algo
1 participant