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

Function pop_pushed_global_context

context.c:170–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170int pop_pushed_global_context(void)
171{
172 if (ctx_stack_idx==0) {
173 LM_ERR("nothing to pop form the stack\n");
174 return -1;
175 }
176
177 context_destroy(CONTEXT_GLOBAL, current_processing_ctx);
178 context_free(current_processing_ctx);
179
180 current_processing_ctx = ctx_stack[--ctx_stack_idx];
181 return 0;
182}
183
184
185void clear_global_context(void)

Callers 2

send_registerFunction · 0.85
term_entityFunction · 0.85

Calls 1

context_destroyFunction · 0.85

Tested by

no test coverage detected