| 1166 | |
| 1167 | |
| 1168 | static int t_flush_flags(struct sip_msg* msg) |
| 1169 | { |
| 1170 | struct cell *t; |
| 1171 | |
| 1172 | /* first get the transaction */ |
| 1173 | t = get_t(); |
| 1174 | if ( t==0 || t==T_UNDEFINED) { |
| 1175 | LM_ERR("failed to flush flags for a message which has" |
| 1176 | " no transaction-state established\n"); |
| 1177 | return -1; |
| 1178 | } |
| 1179 | |
| 1180 | /* do the flush */ |
| 1181 | t->uas.request->flags = msg->flags; |
| 1182 | return 1; |
| 1183 | } |
| 1184 | |
| 1185 | |
| 1186 | static int t_local_replied(struct sip_msg* msg, void *type) |