| 1109 | |
| 1110 | |
| 1111 | int 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 | |
| 1130 | int t_inject_branch( struct cell *t, struct sip_msg *msg, int flags) |
| 1131 | { |
no test coverage detected