| 1105 | |
| 1106 | |
| 1107 | void cc_queue_rmv_call( struct cc_data *data, struct cc_call *call) |
| 1108 | { |
| 1109 | LM_DBG(" QUEUE - removing call %p \n",call); |
| 1110 | if ( !is_call_in_queue(data, call) ) { |
| 1111 | LM_CRIT(" QUEUE - call not in queue l=%p, h=%p\n", |
| 1112 | call->lower_in_queue, call->higher_in_queue); |
| 1113 | abort(); |
| 1114 | } |
| 1115 | |
| 1116 | if (call->lower_in_queue) { |
| 1117 | call->lower_in_queue->higher_in_queue = |
| 1118 | call->higher_in_queue; |
| 1119 | } else { |
| 1120 | data->queue.last = call->higher_in_queue; |
| 1121 | } |
| 1122 | if (call->higher_in_queue) { |
| 1123 | call->higher_in_queue->lower_in_queue = |
| 1124 | call->lower_in_queue; |
| 1125 | } else { |
| 1126 | data->queue.first = call->lower_in_queue; |
| 1127 | } |
| 1128 | call->lower_in_queue = call->higher_in_queue = NULL; |
| 1129 | data->queue.calls_no--; |
| 1130 | update_stat( call->flow->st_queued_calls, -1 ); |
| 1131 | } |
| 1132 | |
| 1133 | |
| 1134 |
no outgoing calls
no test coverage detected