[OpenSIPS-Devel] [OpenSIPS/opensips] 436dd6: Access the route's array after the IPC dispatch.

Bogdan Andrei IANCU noreply at github.com
Thu Nov 7 11:28:24 EST 2019


  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 436dd69da5fcdb6fbb42a57e758c9696b662d0ef
      https://github.com/OpenSIPS/opensips/commit/436dd69da5fcdb6fbb42a57e758c9696b662d0ef
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2019-11-07 (Thu, 07 Nov 2019)

  Changed paths:
    M modules/event_route/event_route.c
    M modules/event_route/route_send.c
    M modules/event_route/route_send.h

  Log Message:
  -----------
  Access the route's array after the IPC dispatch.

The array with the script routes is not available in all procs, so, if the event is triggered from a non-scripting proc (like MI), the array will be empty.
As a fix, use the array (get the action list based on route ID) only via IPC dispatching, when we know for sure that we are in a process with the valid array of routes.
Fixes #1877





More information about the Devel mailing list