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

Function cc_queue_rmv_call

modules/call_center/cc_data.c:1107–1131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1105
1106
1107void 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

Callers 5

terminate_callFunction · 0.85
w_handle_callFunction · 0.85
cc_timer_callsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected