| 4965 | } |
| 4966 | |
| 4967 | static int rtpproxy_api_recording(str *callid, str *from_tag, |
| 4968 | str *to_tag, str *node, str *flags, str *destination, int medianum) |
| 4969 | { |
| 4970 | struct rtpp_node *rnode; |
| 4971 | int ret = -1; |
| 4972 | |
| 4973 | if (nh_lock) { |
| 4974 | lock_start_read( nh_lock ); |
| 4975 | } |
| 4976 | |
| 4977 | if (node) |
| 4978 | rnode = get_rtpp_node(node, NULL); |
| 4979 | else |
| 4980 | /* regular selection from the default rtpp set */ |
| 4981 | rnode = select_rtpp_node(NULL, *callid, *default_rtpp_set, NULL, 1); |
| 4982 | |
| 4983 | if (!rnode) { |
| 4984 | LM_ERR("no available proxies\n"); |
| 4985 | goto exit; |
| 4986 | } |
| 4987 | |
| 4988 | ret = w_rtpproxy_recording(NULL, callid, from_tag, |
| 4989 | to_tag, rnode, NULL, flags, destination, medianum); |
| 4990 | |
| 4991 | exit: |
| 4992 | if (nh_lock) { |
| 4993 | lock_stop_read( nh_lock ); |
| 4994 | } |
| 4995 | return ret; |
| 4996 | } |
| 4997 | |
| 4998 | static int rtpproxy_recording(struct sip_msg* msg, nh_set_param_t *setid, |
| 4999 | pv_spec_t *var, str *flags, str *destination, int *stream_no) |
nothing calls this directly
no test coverage detected