[OpenSIPS-Devel] [OpenSIPS/opensips] 78c803: core context code: add support for a global proces...
Liviu Chircu
liviu at opensips.org
Wed Dec 10 15:08:19 CET 2014
Branch: refs/heads/async
Home: https://github.com/OpenSIPS/opensips
Commit: 78c803566e8a1eaaac4e1a25b2301174cd38824f
https://github.com/OpenSIPS/opensips/commit/78c803566e8a1eaaac4e1a25b2301174cd38824f
Author: Liviu Chircu <liviu at opensips.org>
Date: 2014-12-10 (Wed, 10 Dec 2014)
Changed paths:
M context.h
M main.c
M modules/tm/t_ctx.c
M msg_translator.c
Log Message:
-----------
core context code: add support for a global processing context
The newly introduced CONTEXT_GLOBAL represents the current flow of
script execution. It is a more uniform way of handling the majority
of async script usage scenarios.
The initial direction (by simply using CONTEXT_MSG) runs into too many
problems:
* portions of code where the "current sip_msg" is unavailable
* concurrency issues (insufficient referencing) due to sip_msg cloning
logic in tm, which also clones the context, but fails to properly
count possible additional dialog references
CONTEXT_MSG logic will be removed in a future commit.
More information about the Devel
mailing list