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

Function rtpproxy_offer_answer_buf_ret

modules/rtpproxy/rtpproxy.c:2735–2748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2733}
2734
2735static int rtpproxy_offer_answer_buf_ret(struct sip_msg *msg,
2736 pv_spec_t *body_pv, str *body)
2737{
2738 pv_value_t val;
2739 if(!pv_is_w(body_pv))
2740 {
2741 LM_ERR("read only PV in first parameter of pv_printf\n");
2742 return -1;
2743 }
2744 memset(&val, 0, sizeof val);
2745 val.flags = PV_VAL_STR;
2746 val.rs = *body;
2747 return pv_set_value(msg, body_pv, 0, &val)<0?-1:1;
2748}
2749
2750static int
2751rtpproxy_offer_answer6_f(struct sip_msg *msg, str *param1, str *param2,

Callers 1

rtpproxy_offer_answer6_fFunction · 0.85

Calls 1

pv_set_valueFunction · 0.85

Tested by

no test coverage detected