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

Function rtpproxy_offer_answer_buf

modules/rtpproxy/rtpproxy.c:2718–2733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2716}
2717
2718static str *rtpproxy_offer_answer_buf(struct sip_msg *msg, pv_spec_t *body_pv)
2719{
2720 pv_value_t val;
2721 static str body;
2722
2723 if (pv_get_spec_value(msg, body_pv, &val) < 0 ||
2724 !(val.flags & PV_VAL_STR)) {
2725 LM_ERR("could not retrieve body!\n");
2726 return NULL;
2727 }
2728
2729 if (pkg_str_sync(&body, &val.rs) < 0)
2730 return NULL;
2731
2732 return &body;
2733}
2734
2735static int rtpproxy_offer_answer_buf_ret(struct sip_msg *msg,
2736 pv_spec_t *body_pv, str *body)

Callers 1

rtpproxy_offer_answer6_fFunction · 0.85

Calls 2

pv_get_spec_valueFunction · 0.85
pkg_str_syncFunction · 0.85

Tested by

no test coverage detected