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

Function t_wait_no_more_branches

modules/tm/t_fwd.c:1091–1108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1089
1090
1091int t_wait_no_more_branches( struct cell *t, int extra)
1092{
1093 int b;
1094
1095 /* look back (in the set of active branches for a PHONY branch
1096 * that might control the EBR waiting. If found, update it
1097 * (the br_flags field), so that this is the last allowed injected
1098 * branch (the max number of allowed branches is set to the current
1099 * number of branches) */
1100 for ( b=t->nr_of_outgoings-1; b>=t->first_branch ; b-- ) {
1101 if (TM_BRANCH(t,b).flags & T_UAC_IS_PHONY) {
1102 TM_BRANCH(t,b).br_flags=t->nr_of_outgoings+extra;
1103 return 0;
1104 }
1105 }
1106
1107 return -1;
1108}
1109
1110
1111int t_wait_no_more_branches_timeout(struct cell *t, int code)

Callers 2

t_inject_branchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected