Skip to content

TCP MANAGEMENT module (TCP_MGM)

This module provides optional, SQL-based support for fine-grained management of all TCP connections taking place on OpenSIPS.

At least one SQL database module must be loaded (e.g. “db_xxx”).

None.

Mandatory URL to the SQL database.

Setting the db_url parameter
modparam("tcp_mgm", "db_url", "mysql://opensips:opensipsrw@localhost/opensips")

The name of the table holding the TCP paths (rules).

Default value is “tcp_mgm”.

Setting the db_table parameter
modparam("tcp_mgm", "db_table", "tcp_mgm")

Use a different name for column “column-name”.

Setting the [column-name]_col parameter
modparam("tcp_mgm", "connect_timeout_col", "connect_to")

Replaces obsolete MI command: 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:

Terminal window
# reload all TCP paths
$ opensips-cli -x mi tcp_mgm:reload
"OK"

Top contributors by DevScore(1), authored commits(2) and lines added/removed(3)

#NameDevScoreCommitsLines++Lines—
1.Liviu Chircu (@liviuchircu)218128364
2.Stefan Darius (@dariusstefan)7510710
3.Razvan Crainea (@razvancrainea)752533
4.Maksym Sobolyev (@sobomax)53910

(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

#NameCommit Activity
1.Stefan Darius (@dariusstefan)Jun 2026 - Jul 2026
2.Razvan Crainea (@razvancrainea)Mar 2026 - Jun 2026
3.Maksym Sobolyev (@sobomax)Feb 2023 - Nov 2023
4.Liviu Chircu (@liviuchircu)Apr 2022 - Jul 2022

(1) including any documentation-related commits, excluding merge commits

Last edited by: Razvan Crainea (@razvancrainea), Liviu Chircu (@liviuchircu).

All documentation files (i.e. .md extension) are licensed under the Creative Common License 4.0