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

Bogdan Andrei IANCU noreply at github.com
Mon Oct 9 12:54:49 UTC 2023


  Branch: refs/heads/3.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 5508b9558502fb021b9a9f9b88e6b56a4d222c17
      https://github.com/OpenSIPS/opensips/commit/5508b9558502fb021b9a9f9b88e6b56a4d222c17
  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