[sr-dev] script callbacks
Andrei Pelinescu-Onciul
andrei at iptel.org
Wed Jun 3 19:18:47 CEST 2009
On Jun 01, 2009 at 16:12, Miklos Tirpak <miklos at iptel.org> wrote:
> Hi Andrei,
>
> could you please have a look at the tirpi/script_callbacks branch?
>
> There are some modules that need to initialize their variables before,
> or free/unlock/unref,... something after the script executions. This is
> supported only for request and onreply routes, but it is necessary also
> before/after failure routes in some cases. (For example db_ops needs to
> free the query result.) So I started to add support for pre- and
> post-script callbacks for failure routes. But instead of simply adding
> another list to the core I generalized the API a bit to support any kind
> of route blocks, and added hooks also for branch and onsend routes.
> Please let me know whether I can merge my branch to the master.
Go ahead.
Andrei
More information about the sr-dev
mailing list