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

Function rtpproxy_offer_answer6_f

modules/rtpproxy/rtpproxy.c:2750–2782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2748}
2749
2750static int
2751rtpproxy_offer_answer6_f(struct sip_msg *msg, str *param1, str *param2,
2752 nh_set_param_t *param3, pv_spec_t *param4, pv_spec_t *param5,
2753 pv_spec_t *param6, pv_spec_t *param7, int offer)
2754{
2755 int ret = -1;
2756 str *body;
2757 str param1_val={0,0}, param2_val={0,0}, bind_local_val = STR_NULL;
2758
2759 if (param1)
2760 rtpp_get_nt_str_param(param1, &param1_val, 0);
2761 if (param2)
2762 rtpp_get_nt_str_param(param2, &param2_val, 1);
2763 if (param7 && rtpp_get_pv_str_dup(msg, param7, &bind_local_val,
2764 "bind_local") < 0)
2765 return -1;
2766 if (param6) {
2767 body = rtpproxy_offer_answer_buf(msg, param6);
2768 if (!body)
2769 goto error;
2770 } else {
2771 body = NULL;
2772 }
2773
2774 ret = force_rtp_proxy(msg, param1_val.s, param2_val.s, param3, param4,
2775 param5, body, offer, param7 ? &bind_local_val : NULL);
2776 if (ret > 0 && param6)
2777 ret = rtpproxy_offer_answer_buf_ret(msg, param6, body);
2778error:
2779 if (bind_local_val.s)
2780 pkg_free(bind_local_val.s);
2781 return ret;
2782}
2783
2784static int
2785rtpproxy_offer6_f(struct sip_msg *msg, str *param1, str *param2,

Callers 2

rtpproxy_offer6_fFunction · 0.85
rtpproxy_answer6_fFunction · 0.85

Calls 5

rtpp_get_nt_str_paramFunction · 0.85
rtpp_get_pv_str_dupFunction · 0.85
force_rtp_proxyFunction · 0.85

Tested by

no test coverage detected