TCP MANAGEMENT module (TCP_MGM)
Admin Guide
Section titled “Admin Guide”Overview
Section titled “Overview”This module provides optional, SQL-based support for fine-grained management of all TCP connections taking place on OpenSIPS.
Dependencies
Section titled “Dependencies”OpenSIPS Modules
Section titled “OpenSIPS Modules”At least one SQL database module must be loaded (e.g. “db_xxx”).
External Libraries or Applications
Section titled “External Libraries or Applications”None.
Exported Parameters
Section titled “Exported Parameters”db_url (string)
Section titled “db_url (string)”Mandatory URL to the SQL database.
modparam("tcp_mgm", "db_url", "mysql://opensips:opensipsrw@localhost/opensips")db_table (string)
Section titled “db_table (string)”The name of the table holding the TCP paths (rules).
Default value is “tcp_mgm”.
modparam("tcp_mgm", "db_table", "tcp_mgm")[column-name]_col (string)
Section titled “[column-name]_col (string)”Use a different name for column “column-name”.
modparam("tcp_mgm", "connect_timeout_col", "connect_to")Exported MI Functions
Section titled “Exported MI Functions”tcp_reload
Section titled “tcp_reload”Reload all TCP paths from the tcp_mgm table without disrupting ongoing traffic. Note that the reloaded rules will NOT immediately apply to existing TCP connections, rather only to newly established ones.
Example:
# reload all TCP paths$ opensips-cli -x mi tcp_reload"OK"Contributors
Section titled “Contributors”By Commit Statistics
Section titled “By Commit Statistics”Top contributors by DevScore(1), authored commits(2) and lines added/removed(3)
| # | Name | DevScore | Commits | Lines++ | Lines— |
|---|---|---|---|---|---|
| 1. | Liviu Chircu (@liviuchircu) | 21 | 8 | 1283 | 64 |
| 2. | Stefan Darius (@dariusstefan) | 7 | 5 | 104 | 10 |
| 3. | Maksym Sobolyev (@sobomax) | 4 | 2 | 4 | 5 |
| 4. | Razvan Crainea (@razvancrainea) | 3 | 1 | 1 | 1 |
(1) DevScore = author_commits + author_lines_added / (project_lines_added / project_commits) + author_lines_deleted / (project_lines_deleted / project_commits)
(2) including any documentation-related commits, excluding merge commits
(3) ignoring whitespace edits, renamed files and auto-generated files
By Commit Activity
Section titled “By Commit Activity”| # | Name | Commit Activity |
|---|---|---|
| 1. | Stefan Darius (@dariusstefan) | Jun 2026 - Jul 2026 |
| 2. | Razvan Crainea (@razvancrainea) | Jun 2026 - Jun 2026 |
| 3. | Maksym Sobolyev (@sobomax) | Feb 2023 - Feb 2023 |
| 4. | Liviu Chircu (@liviuchircu) | Apr 2022 - Jul 2022 |
(1) including any documentation-related commits, excluding merge commits
Documentation
Section titled “Documentation”Contributors
Section titled “Contributors”Last edited by: Razvan Crainea (@razvancrainea), Liviu Chircu (@liviuchircu).
License
Section titled “License”All documentation files (i.e. .md extension) are licensed under the Creative Common License 4.0