| 3338 | */ |
| 3339 | |
| 3340 | static 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 |
no outgoing calls
no test coverage detected