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

Function get_flow_by_name

modules/call_center/cc_data.c:185–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183
184
185struct cc_flow *get_flow_by_name(struct cc_data *data, str *name)
186{
187 struct cc_flow *flow;
188
189 for( flow=data->flows ; flow ; flow=flow->next ) {
190 if (name->len==flow->id.len &&
191 memcmp( name->s, flow->id.s, name->len)==0)
192 return flow;
193 }
194
195 return NULL;
196}
197
198
199struct cc_agent* get_agent_by_name(struct cc_data *data, str *name, struct cc_agent **prev_agent)

Callers 3

cc_db_restore_callsFunction · 0.85
w_handle_callFunction · 0.85
add_cc_flowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected