Module: kamailio
Branch: master
Commit: 95fc59a0bcddae3e174c4baf3f47a6cd2a15791b
URL:
https://github.com/kamailio/kamailio/commit/95fc59a0bcddae3e174c4baf3f47a6c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-07-07T10:01:09+02:00
core: define core tokens before parsing config file
---
Modified: src/main.c
---
Diff:
https://github.com/kamailio/kamailio/commit/95fc59a0bcddae3e174c4baf3f47a6c…
Patch:
https://github.com/kamailio/kamailio/commit/95fc59a0bcddae3e174c4baf3f47a6c…
---
diff --git a/src/main.c b/src/main.c
index 846e35970d..1830b9628f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1952,6 +1952,8 @@ int main(int argc, char** argv)
init_tcp_options(); /* set the defaults before the config */
#endif
+ pp_define_core();
+
/* process command line (cfg. file path etc) */
optind = 1; /* reset getopt */
/* switches required before script processing */
@@ -2155,7 +2157,6 @@ int main(int argc, char** argv)
}
if (debug_flag) default_core_cfg.debug = debug_save;
pp_ifdef_level_check();
- pp_define_core();
print_rls();
if(init_dst_set()<0) {