Module: kamailio Branch: master Commit: 8b3112774fe08f5b6d808ee916431c3331a2e819 URL: https://github.com/kamailio/kamailio/commit/8b3112774fe08f5b6d808ee916431c33...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2023-01-04T10:23:24+01:00
core: export core rpc commands later when shm is initialized
---
Modified: src/core/globals.h Modified: src/main.c
---
Diff: https://github.com/kamailio/kamailio/commit/8b3112774fe08f5b6d808ee916431c33... Patch: https://github.com/kamailio/kamailio/commit/8b3112774fe08f5b6d808ee916431c33...
---
diff --git a/src/core/globals.h b/src/core/globals.h index 8d72807aee..109e4474cf 100644 --- a/src/core/globals.h +++ b/src/core/globals.h @@ -233,6 +233,8 @@ extern char *ksr_stats_namesep; extern str ksr_ipv6_hex_style; extern int ksr_local_rport;
+extern int ksr_rpc_exec_delta; + #ifdef USE_DNS_CACHE extern int dns_cache_init; /* if 0, the DNS cache is not initialized at startup */ extern unsigned int dns_timer_interval; /* gc timer interval in s */ diff --git a/src/main.c b/src/main.c index f2ffe02665..07b89604f8 100644 --- a/src/main.c +++ b/src/main.c @@ -2430,7 +2430,6 @@ int main(int argc, char** argv) if (pv_init_api()<0) goto error; if (pv_register_core_vars()!=0) goto error; if (init_rpcs()<0) goto error; - if (register_core_rpcs()!=0) goto error;
/* Fix the value of cfg_file variable.*/ if (fix_cfg_file() < 0) goto error; @@ -2762,6 +2761,8 @@ int main(int argc, char** argv) if (pv_reinit_buffer()<0) goto error;
+ if (register_core_rpcs()!=0) goto error; + if (ksr_route_locks_set_init()<0) goto error;