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

Function rtpengine_offer_answer

modules/rtpengine/rtpengine.c:4062–4082  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4060}
4061
4062static int
4063rtpengine_offer_answer(struct sip_msg *msg, str *flags, str *node,
4064 pv_spec_t *spvar, pv_spec_t *bpvar, str *body, int op)
4065{
4066 str newbody;
4067 pv_value_t val;
4068 int ret = rtpengine_offer_answer_body(msg, flags, node,
4069 spvar, body, (bpvar?&newbody:NULL), NULL, op);
4070 if (ret < 0)
4071 return -1;
4072 /* if we have a variable to store into, use it */
4073 if (bpvar) {
4074 memset(&val, 0, sizeof(pv_value_t));
4075 val.flags = PV_VAL_STR;
4076 val.rs = newbody;
4077 if(pv_set_value(msg, bpvar, (int)EQ_T, &val)<0)
4078 LM_ERR("setting PV failed\n");
4079 pkg_free(newbody.s);
4080 }
4081 return ret;
4082}
4083
4084
4085static int

Callers 3

rtpengine_manageFunction · 0.85
rtpengine_offer_fFunction · 0.85
rtpengine_answer_fFunction · 0.85

Calls 2

pv_set_valueFunction · 0.85

Tested by

no test coverage detected