MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / tm_existing_invite_trans

Function tm_existing_invite_trans

modules/tm/cluster.c:529–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527}
528
529static 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/**

Callers 2

tm_anycast_replicateFunction · 0.85
tm_anycast_cancelFunction · 0.85

Calls 3

get_cancelled_tFunction · 0.85
t_lookupOriginalTFunction · 0.85

Tested by

no test coverage detected