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

Function free_cc_call

modules/call_center/cc_data.c:826–845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824
825
826void free_cc_call(struct cc_data * data, struct cc_call *call)
827{
828 lock_get( data->lock );
829
830 cc_list_remove_call( data, call );
831
832 lock_release( data->lock );
833
834 LM_DBG("free call %p, [%.*s]\n", call, call->b2bua_id.len, call->b2bua_id.s);
835 if (call->flow)
836 call->flow->ref_cnt--;
837
838 if(call->b2bua_id.s)
839 shm_free(call->b2bua_id.s);
840
841 if (call->b2bua_agent_id.s)
842 shm_free(call->b2bua_agent_id.s);
843
844 shm_free(call);
845}
846
847
848struct cc_agent* get_free_agent_by_skill(struct cc_data *data,

Callers 7

cc_db_restore_callsFunction · 0.85
b2bl_callback_agentFunction · 0.85
b2bl_callback_customerFunction · 0.85
w_handle_callFunction · 0.85
cc_timer_agentsFunction · 0.85
cc_timer_callsFunction · 0.85

Calls 4

lock_getFunction · 0.85
cc_list_remove_callFunction · 0.85
lock_releaseFunction · 0.85
shm_freeFunction · 0.85

Tested by

no test coverage detected