From 378af34ecd51ff1a3281b4244e052e5af730fa60 Mon Sep 17 00:00:00 2001 From: lazedo Date: Sat, 17 Nov 2018 13:38:25 +0000 Subject: [PATCH] allow extensibility on custom init --- kamailio/custom-init.cfg | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/kamailio/custom-init.cfg b/kamailio/custom-init.cfg index d4b76c2..ecd73a6 100644 --- a/kamailio/custom-init.cfg +++ b/kamailio/custom-init.cfg @@ -1,6 +1,3 @@ - -#!ifdef PRESENCE_ROLE - ######## async operations module ######## loadmodule "async.so" modparam("async", "workers", 5) @@ -8,7 +5,16 @@ modparam("async", "workers", 5) event_route[core:worker-one-init] { - async_route("PRESENCE_INITIAL_CLEANUP", "20"); + async_route("DEFERRED_INIT", "20"); } -#!endif + +route[DEFERRED_INIT] +{ + xlog("L_INFO", "processing deferred init\n"); + + #!ifdef PRESENCE_ROLE + route(PRESENCE_INITIAL_CLEANUP); + #!endif + +}