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

Function get_rtpp_node

modules/rtpproxy/rtpproxy.c:2562–2579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2560}
2561
2562struct 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
2581static int
2582unforce_rtp_proxy_f(struct sip_msg* msg, nh_set_param_t *pset, pv_spec_t *var)

Callers 7

rtpproxy_api_recordingFunction · 0.85
rtpproxy_api_offerFunction · 0.85
rtpproxy_api_answerFunction · 0.85
rtpproxy_api_deleteFunction · 0.85
rtpproxy_api_copy_answerFunction · 0.85
rtpproxy_api_copy_deleteFunction · 0.85

Calls 2

rtpp_check_reload_verFunction · 0.85
get_rtpp_node_from_setFunction · 0.85

Tested by

no test coverage detected