| 170 | |
| 171 | |
| 172 | static 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 | |
| 196 | static void mod_destroy(void) |
nothing calls this directly
no test coverage detected