| 1238 | |
| 1239 | |
| 1240 | static int t_was_cancelled(struct sip_msg* msg) |
| 1241 | { |
| 1242 | struct cell *t; |
| 1243 | |
| 1244 | /* first get the transaction */ |
| 1245 | t = get_t(); |
| 1246 | if ( t==0 || t==T_UNDEFINED ) { |
| 1247 | LM_ERR("failed to check cancel flag for a reply" |
| 1248 | " without a transaction\n"); |
| 1249 | return -1; |
| 1250 | } |
| 1251 | return was_cancelled(t)?1:-1; |
| 1252 | } |
| 1253 | |
| 1254 | |
| 1255 | static int w_t_reply(struct sip_msg* msg, unsigned int code, str* text) |