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

Function script_return_push

route.c:2171–2184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2169static struct script_return_value **script_return_values = NULL, *script_return_last;
2170
2171int script_return_push(void)
2172{
2173 struct script_return_value **tmp;
2174 tmp = pkg_realloc(script_return_values, (script_return_level + 1) * sizeof *tmp);
2175 if (!tmp) {
2176 LM_ERR("could not add another return level (current=%d\n", script_return_level);
2177 return -1;
2178 }
2179 script_return_values = tmp;
2180 script_return_values[script_return_level] = NULL;
2181 if (script_return_last)
2182 script_return_free(&script_return_last);
2183 return script_return_level++;
2184}
2185
2186void script_return_pop(int level)
2187{

Callers 1

run_actionsFunction · 0.85

Calls 1

script_return_freeFunction · 0.85

Tested by

no test coverage detected