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

Function mod_init

modules/rr/rr_mod.c:172–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170
171
172static int mod_init(void)
173{
174 LM_INFO("rr - initializing\n");
175
176 ctx_rrparam_idx = context_register_str(CONTEXT_GLOBAL, NULL);
177 ctx_routing_idx = context_register_int(CONTEXT_GLOBAL, NULL);
178 ctx_rrdone_idx = context_register_int(CONTEXT_GLOBAL, NULL);
179
180#ifdef ENABLE_USER_CHECK
181 if(ignore_user)
182 {
183 i_user.s = ignore_user;
184 i_user.len = strlen(ignore_user);
185 }
186 else
187 {
188 i_user.s = 0;
189 i_user.len = 0;
190 }
191#endif
192 return 0;
193}
194
195
196static void mod_destroy(void)

Callers

nothing calls this directly

Calls 2

context_register_strFunction · 0.85
context_register_intFunction · 0.85

Tested by

no test coverage detected