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

Function rtpengine_new_subs

modules/rtpengine/rtpengine.c:5207–5216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5205}
5206
5207static str *rtpengine_new_subs(str *tag)
5208{
5209 str *to_tag = shm_malloc(sizeof *to_tag + tag->len);
5210 if (to_tag) {
5211 to_tag->s = (char *)(to_tag + 1);
5212 to_tag->len = tag->len;
5213 memcpy(to_tag->s, tag->s, tag->len);
5214 }
5215 return to_tag;
5216}
5217
5218static void rtpengine_copy_streams(bencode_item_t *streams, struct rtp_relay_streams *ret)
5219{

Callers 2

rtpengine_api_copy_offerFunction · 0.85

Calls 1

shm_mallocFunction · 0.85

Tested by

no test coverage detected