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

Function t_on_negative

modules/tm/t_reply.c:143–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141
142
143void t_on_negative( struct script_route_ref *ref )
144{
145 struct cell *t = get_t();
146 struct script_route_ref **holder;
147
148 /* in MODE_REPLY and MODE_ONFAILURE T will be set to current transaction;
149 * in MODE_REQUEST T will be set only if the transaction was already
150 * created; if not -> use the static variable */
151 holder = (!t || t==T_UNDEFINED ) ? &goto_on_negative : &t->on_negative ;
152
153 /* if something already set, free it first */
154 if (*holder)
155 shm_free( *holder );
156
157 *holder = ref ? dup_ref_script_route_in_shm( ref, 0) : NULL;
158}
159
160
161void t_on_reply( struct script_route_ref *ref )

Callers 3

run_failure_handlersFunction · 0.85
script_initFunction · 0.85
w_t_on_negativeFunction · 0.85

Calls 3

get_tFunction · 0.85
shm_freeFunction · 0.85

Tested by

no test coverage detected