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

Function proc_init

modules/mi_html/mi_html.c:116–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114
115
116void proc_init(void)
117{
118 /* Build a cache of all mi commands */
119 if (0!=mi_http_init_cmds())
120 exit(-1);
121
122 /* Build async lock */
123 if (mi_http_init_async_lock() != 0)
124 exit(-1);
125
126 /* if tracing enabled init correlation id */
127 if ( t_dst ) {
128 if ( load_correlation_id() < 0 ) {
129 LM_ERR("can't find correlation id params!\n");
130 exit(-1);
131 }
132
133 if ( mi_trace_api && mi_trace_bwlist_s ) {
134 if ( parse_mi_cmd_bwlist( mi_trace_mod_id,
135 mi_trace_bwlist_s, strlen(mi_trace_bwlist_s) ) < 0 ) {
136 LM_ERR("invalid bwlist <%s>!\n", mi_trace_bwlist_s);
137 exit(-1);
138 }
139 }
140 }
141
142 return;
143}
144
145static int mod_init(void)
146{

Callers

nothing calls this directly

Calls 4

mi_http_init_cmdsFunction · 0.85
mi_http_init_async_lockFunction · 0.85
load_correlation_idFunction · 0.85
parse_mi_cmd_bwlistFunction · 0.85

Tested by

no test coverage detected