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

Function tm_existing_ack_trans

modules/tm/cluster.c:512–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510}
511
512static int tm_existing_ack_trans(struct sip_msg *msg)
513{
514 struct cell *t = get_t();
515 if (t == T_UNDEFINED) {
516 if (t_lookup_request(msg, 0) != -1) {
517 LM_DBG("e2e ACK or known CANCEL, do not replicate\n");
518 return 1;
519 }
520 t = get_t(); /* fetch again the transaction */
521 }
522 if (t) {
523 LM_DBG("transaction already present here, no need to replicate\n");
524 return 1;
525 }
526 return 0;
527}
528
529static int tm_existing_invite_trans(struct sip_msg *msg)
530{

Callers 1

tm_anycast_replicateFunction · 0.85

Calls 2

get_tFunction · 0.85
t_lookup_requestFunction · 0.85

Tested by

no test coverage detected