| 141 | |
| 142 | |
| 143 | void 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 | |
| 161 | void t_on_reply( struct script_route_ref *ref ) |
no test coverage detected