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

Function append_opts_str

modules/rtpproxy/rtpproxy.c:3347–3363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3345}
3346
3347static int
3348append_opts_str(struct options *op, str *s)
3349{
3350 void *p;
3351
3352 if (op->s.len < op->oidx + s->len) {
3353 p = pkg_realloc(op->s.s, op->oidx + s->len + 32);
3354 if (p == NULL) {
3355 return (-1);
3356 }
3357 op->s.s = p;
3358 op->s.len = op->oidx + s->len + 32;
3359 }
3360 memcpy(op->s.s + op->oidx, s->s, s->len);
3361 op->oidx += s->len;
3362 return (0);
3363}
3364
3365static void
3366free_opts(struct options *op1, struct options *op2, struct options *op3, struct options *op4)

Callers 1

rtpproxy_offer_answerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected