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

Function script_return_pop

route.c:2186–2200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2184}
2185
2186void script_return_pop(int level)
2187{
2188 /* we leave this here, just to have a way of popping the last level */
2189 if (script_return_last)
2190 script_return_free(&script_return_last);
2191 if (script_return_level < 0)
2192 return;
2193 if (level != script_return_level - 1) {
2194 LM_BUG("cannot return level %d vs %d\n", level, script_return_level);
2195 return;
2196 }
2197 script_return_last = script_return_values[level];
2198 script_return_values = pkg_realloc(script_return_values,
2199 (--script_return_level) * sizeof *script_return_values);
2200}
2201
2202void script_return_free(struct script_return_value **values)
2203{

Callers 1

run_actionsFunction · 0.85

Calls 1

script_return_freeFunction · 0.85

Tested by

no test coverage detected