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

Function t_unref

modules/tm/t_lookup.c:1153–1169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1151
1152
1153int t_unref( struct sip_msg* p_msg )
1154{
1155 enum kill_reason kr;
1156
1157 if (T==T_UNDEFINED)
1158 return -1;
1159 if (T!=T_NULL_CELL) {
1160 if (p_msg->first_line.type==SIP_REQUEST){
1161 kr=get_kr();
1162 if (kr==0 ||(p_msg->REQ_METHOD==METHOD_ACK && !(kr & REQ_RLSD)))
1163 t_release_transaction(T);
1164 }
1165 UNREF( T );
1166 }
1167 set_t(T_UNDEFINED);
1168 return 1;
1169}
1170
1171void t_ref_cell(struct cell *c)
1172{

Callers 5

reply_receivedFunction · 0.85
do_t_cleanupFunction · 0.85
t_resume_async_replyFunction · 0.85
tm_anycast_cancelFunction · 0.85
t_newtranFunction · 0.85

Calls 3

get_krFunction · 0.85
t_release_transactionFunction · 0.85
set_tFunction · 0.85

Tested by

no test coverage detected