| 527 | } |
| 528 | |
| 529 | static int tm_existing_invite_trans(struct sip_msg *msg) |
| 530 | { |
| 531 | struct cell *t = get_cancelled_t(); |
| 532 | if (t == T_UNDEFINED) { |
| 533 | /* parse needed hdrs*/ |
| 534 | if (check_transaction_quadruple(msg)==0) { |
| 535 | LM_ERR("too few headers\n"); |
| 536 | return 0; /*drop request!*/ |
| 537 | } |
| 538 | if (!msg->hash_index) |
| 539 | msg->hash_index = tm_hash(msg->callid->body,get_cseq(msg)->number); |
| 540 | /* performe lookup */ |
| 541 | t = t_lookupOriginalT(msg); |
| 542 | } |
| 543 | if (t) { |
| 544 | LM_DBG("transaction already present here, no need to replicate\n"); |
| 545 | return 1; |
| 546 | } |
| 547 | return 0; |
| 548 | } |
| 549 | |
| 550 | |
| 551 | /** |
no test coverage detected