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

Function force_rtp_proxy_body

modules/rtpproxy/rtpproxy.c:4480–4503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4478#undef RTPPROXY_APPEND_CONST
4479
4480int force_rtp_proxy_body(struct sip_msg* msg, struct rtpp_args *args,
4481 pv_spec_p var, pv_spec_p ipvar, str *body, str *bind_local)
4482{
4483 if (!args->callid.len && (get_callid(msg, &args->callid) == -1 || args->callid.len == 0)) {
4484 LM_ERR("can't get Call-Id field\n");
4485 return -1;
4486 }
4487
4488 if (!args->to_tag.len && !args->to_tag.s) {
4489 args->to_tag.s = 0;
4490 if (get_to_tag(msg, &args->to_tag) == -1) {
4491 LM_ERR("can't get To tag\n");
4492 return -1;
4493 }
4494 }
4495
4496 if (!args->from_tag.len &&
4497 (get_from_tag(msg, &args->from_tag) == -1 || args->from_tag.len == 0)) {
4498 LM_ERR("can't get From tag\n");
4499 return -1;
4500 }
4501
4502 return rtpproxy_offer_answer(msg, args, var, ipvar, body, bind_local);
4503}
4504
4505static char *rtpproxy_stats_pop_int(struct sip_msg *msg, char *p,
4506 pv_spec_p spec, const char *varname)

Callers 2

force_rtpproxy_body_partFunction · 0.85
rtpproxy_pre_fwdFunction · 0.85

Calls 4

get_callidFunction · 0.85
rtpproxy_offer_answerFunction · 0.85
get_to_tagFunction · 0.70
get_from_tagFunction · 0.70

Tested by

no test coverage detected