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

Function select_rtpe_set

modules/rtpengine/rtpengine.c:3340–3356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3338 */
3339
3340static struct rtpe_set * select_rtpe_set(int id_set )
3341{
3342
3343 struct rtpe_set * rtpe_list;
3344 /*is it a valid set_id?*/
3345
3346 if(!rtpe_set_list || !(*rtpe_set_list) || !(*rtpe_set_list)->rset_first)
3347 return 0;
3348
3349 for(rtpe_list=(*rtpe_set_list)->rset_first; rtpe_list!=0 &&
3350 rtpe_list->id_set!=id_set; rtpe_list=rtpe_list->rset_next);
3351 if(!rtpe_list){
3352 LM_DBG("no engine in set %d\n", id_set);
3353 }
3354
3355 return rtpe_list;
3356}
3357/*
3358 * Main balancing routine. This does not try to keep the same proxy for
3359 * the call if some proxies were disabled or enabled; proxy death considered

Callers 10

fixup_set_idFunction · 0.85
mi_reload_rtpenginesFunction · 0.85
mod_initFunction · 0.85
set_rtpengine_set_fFunction · 0.85
rtpengine_get_setFunction · 0.85
rtpengine_api_offerFunction · 0.85
rtpengine_api_answerFunction · 0.85
rtpengine_api_deleteFunction · 0.85
rtpengine_api_copy_opFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected