[OpenSIPS-Devel] [OpenSIPS/opensips] 361006: Add new "tcp_close_connection" script/MI function

Liviu Chircu noreply at github.com
Tue Apr 21 14:39:51 UTC 2026


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 3610069c069381bc44d4085f538a821f1effc382
      https://github.com/OpenSIPS/opensips/commit/3610069c069381bc44d4085f538a821f1effc382
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2026-04-21 (Tue, 21 Apr 2026)

  Changed paths:
    M core_cmds.c
    M mi/mi_core.c
    M net/net_tcp.c
    M net/net_tcp.h
    M net/tcp_conn_defs.h

  Log Message:
  -----------
  Add new "tcp_close_connection" script/MI function

Takes either an "[proto:]ip:port" or a "tcp_conn_id" as 1st argument. If
the protocol part is missing (e.g. only ip:port is supplied), all TCP
protocols will be tried in order and have their connections matched,
until a match is found.

On a match, the function will proceed to force-close the respective
connection, with no additional errors printed to the OpenSIPS log.



To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications



More information about the Devel mailing list