[OpenSIPS-Devel] [OpenSIPS/opensips] 09548e: [evi] do not raise event from TCP MAIN

Bogdan Andrei IANCU noreply at github.com
Mon Oct 9 12:52:34 UTC 2023


  Branch: refs/heads/3.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 09548eeb8ac132647cf0aea2a522b5ac19a1d37b
      https://github.com/OpenSIPS/opensips/commit/09548eeb8ac132647cf0aea2a522b5ac19a1d37b
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2023-10-09 (Mon, 09 Oct 2023)

  Changed paths:
    M evi/event_interface.c
    M evi/evi_modules.h
    M net/net_tcp.c

  Log Message:
  -----------
  [evi] do not raise event from TCP MAIN

The TCP MAIN process does not have script capabilities, so we should NOT raise event here (as they may translate into scripting due to the event_route module). So, if we have an event to be raised from TCP MAIN (as E_CORE_TCP_DISCONNECT) we better use the newly added evi_dispatch_event() function which does IPC dispatching (into a different process) and raise for the event.
Closes #3212

(cherry picked from commit fd0657602734f242223e99655e49aa967ffec423)





More information about the Devel mailing list