| 2560 | } |
| 2561 | |
| 2562 | struct rtpp_node *get_rtpp_node(str *node, struct rtpp_set *filter) |
| 2563 | { |
| 2564 | struct rtpp_set *set; |
| 2565 | struct rtpp_node *rnode; |
| 2566 | |
| 2567 | if (rtpp_check_reload_ver(filter) != 0) { |
| 2568 | LM_ERR("cannot update rtpp proxies list (set: %d)\n", |
| 2569 | filter ? filter->id_set : -1); |
| 2570 | return NULL; |
| 2571 | } |
| 2572 | |
| 2573 | /* if chosen a specific node, use it! */ |
| 2574 | for (set = (*rtpp_set_list)->rset_first; set; set = set->rset_next) { |
| 2575 | if ((rnode = get_rtpp_node_from_set(node, set, 1)) != NULL) |
| 2576 | return rnode; |
| 2577 | } |
| 2578 | return NULL; |
| 2579 | } |
| 2580 | |
| 2581 | static int |
| 2582 | unforce_rtp_proxy_f(struct sip_msg* msg, nh_set_param_t *pset, pv_spec_t *var) |
no test coverage detected