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

Function cancel_uacs

modules/tm/t_cancel.c:67–87  ·  view source on GitHub ↗

cancel branches scheduled for deletion */

Source from the content-addressed store, hash-verified

65
66/* cancel branches scheduled for deletion */
67void cancel_uacs( struct cell *t, branch_bm_t cancel_bm )
68{
69 int i;
70
71 /* cancel pending client transactions, if any */
72 for( i=0 ; i<t->nr_of_outgoings ; i++ )
73 if ( BRANCH_BM_TST_IDX( cancel_bm, i) ) {
74 /* any reply actually received on this branch */
75 if (TM_BRANCH(t,i).last_received!=0) {
76 /* send a cancel out */
77 cancel_branch(t, i);
78 } else {
79 /* if no reply received on this branch, do not send out
80 * a CANCEL as it is against RFC3261. We will eventually send
81 * one out IF we receive later a reply on this branch, so let's
82 * flag it for catching (and cancelling) such delaied replies
83 */
84 TM_BRANCH(t,i).flags |= T_UAC_TO_CANCEL_FLAG;
85 }
86 }
87}
88
89
90void cancel_branch( struct cell *t, int branch )

Callers 11

mi_tm_cancelFunction · 0.85
_reply_lightFunction · 0.85
t_should_relay_responseFunction · 0.85
relay_replyFunction · 0.85
local_replyFunction · 0.85
process_reply_and_timerFunction · 0.85
t_cancel_transFunction · 0.85
w_t_cancel_branchFunction · 0.85
cancel_inviteFunction · 0.85
t_inject_branchFunction · 0.85
final_response_handlerFunction · 0.85

Calls 1

cancel_branchFunction · 0.85

Tested by

no test coverage detected