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

Function t_wait_no_more_branches_timeout

modules/tm/t_fwd.c:1111–1128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1109
1110
1111int t_wait_no_more_branches_timeout(struct cell *t, int code)
1112{
1113 branch_bm_t cancel_bitmap = BRANCH_BM_ZERO;
1114 int b;
1115
1116 for (b = t->nr_of_outgoings - 1; b >= t->first_branch; b--) {
1117 if (TM_BRANCH(t, b).flags & T_UAC_IS_PHONY) {
1118 if (TM_BRANCH(t, b).last_received < 200) {
1119 LOCK_REPLIES(t);
1120 relay_reply(t, FAKED_REPLY, b, code, cancel_bitmap);
1121 }
1122 TM_BRANCH(t, b).br_flags = t->nr_of_outgoings;
1123 return 0;
1124 }
1125 }
1126
1127 return -1;
1128}
1129
1130int t_inject_branch( struct cell *t, struct sip_msg *msg, int flags)
1131{

Callers 1

Calls 1

relay_replyFunction · 0.85

Tested by

no test coverage detected