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

Function context_alloc

context.c:116–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116context_p context_alloc(enum osips_context type)
117{
118 context_p ctx;
119
120 ctx = pkg_malloc(context_size(type));
121 if (!ctx) {
122 LM_ERR("no more pkg mem\n");
123 return NULL;
124 }
125
126 return ctx;
127}
128
129
130int ensure_global_context(void)

Callers 7

ensure_global_contextFunction · 0.85
push_new_global_contextFunction · 0.85
run_top_routeFunction · 0.85
final_response_handlerFunction · 0.85
hep_receive_msgFunction · 0.85
hep_udp_read_reqFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected