| 1179 | } |
| 1180 | |
| 1181 | int t_get_trans_ident(struct sip_msg* p_msg, unsigned int* hash_index, |
| 1182 | unsigned int* label) |
| 1183 | { |
| 1184 | struct cell* t; |
| 1185 | if(t_check(p_msg,0) != 1){ |
| 1186 | LM_ERR("no transaction found\n"); |
| 1187 | return -1; |
| 1188 | } |
| 1189 | t = get_t(); |
| 1190 | if(!t){ |
| 1191 | LM_ERR("transaction found is NULL\n"); |
| 1192 | return -1; |
| 1193 | } |
| 1194 | |
| 1195 | *hash_index = t->hash_index; |
| 1196 | *label = t->label; |
| 1197 | |
| 1198 | return 1; |
| 1199 | } |
| 1200 | |
| 1201 | |
| 1202 | /* Looks for the transaction with the given coordinates (index/label). |
no test coverage detected