[OpenSIPS-Devel] [OpenSIPS/opensips] 9bb0fc: Access the route's array after the IPC dispatch.
Bogdan Andrei IANCU
noreply at github.com
Thu Nov 7 11:29:04 EST 2019
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 9bb0fcccd3a89a32ee0b680ab799de8071e2543d
https://github.com/OpenSIPS/opensips/commit/9bb0fcccd3a89a32ee0b680ab799de8071e2543d
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
(cherry picked from commit 436dd69da5fcdb6fbb42a57e758c9696b662d0ef)
More information about the Devel
mailing list