MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / mod_init

Function mod_init

modules/freeswitch/fs_mod.c:102–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100};
101
102static int mod_init(void)
103{
104 cJSON_Hooks hooks;
105
106 if (fs_ipc_init() != 0) {
107 LM_ERR("failed to init IPC, oom?\n");
108 return -1;
109 }
110
111 if (fs_api_init() != 0) {
112 LM_ERR("failed to init API internals, oom?\n");
113 return -1;
114 }
115
116 hooks.malloc_fn = osips_pkg_malloc;
117 hooks.free_fn = osips_pkg_free;
118 cJSON_InitHooks(&hooks);
119
120 return 0;
121}

Callers

nothing calls this directly

Calls 3

fs_ipc_initFunction · 0.85
fs_api_initFunction · 0.85
cJSON_InitHooksFunction · 0.50

Tested by

no test coverage detected