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

Function rtpproxy_api_recording

modules/rtpproxy/rtpproxy.c:4967–4996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4965}
4966
4967static 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
4991exit:
4992 if (nh_lock) {
4993 lock_stop_read( nh_lock );
4994 }
4995 return ret;
4996}
4997
4998static int rtpproxy_recording(struct sip_msg* msg, nh_set_param_t *setid,
4999 pv_spec_t *var, str *flags, str *destination, int *stream_no)

Callers

nothing calls this directly

Calls 3

get_rtpp_nodeFunction · 0.85
select_rtpp_nodeFunction · 0.85
w_rtpproxy_recordingFunction · 0.85

Tested by

no test coverage detected