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

Function fixup_set_id

modules/rtpengine/rtpengine.c:1230–1252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1228
1229
1230static int fixup_set_id(void ** param)
1231{
1232 struct rtpe_set* rtpe_list;
1233 rtpe_set_link_t *rtpl = NULL;
1234
1235 rtpl = (rtpe_set_link_t*)pkg_malloc(sizeof(rtpe_set_link_t));
1236 if(rtpl==NULL) {
1237 LM_ERR("no more pkg memory\n");
1238 return -1;
1239 }
1240 memset(rtpl, 0, sizeof(rtpe_set_link_t));
1241
1242 if((rtpe_list = select_rtpe_set(*(int*)*param)) ==0){
1243 rtpl->type = RTPE_SET_NONE;
1244 rtpl->v.id = *(int*)*param;
1245 } else {
1246 rtpl->type = RTPE_SET_FIXED;
1247 rtpl->v.rset = rtpe_list;
1248 }
1249
1250 *param = (void*)rtpl;
1251 return 0;
1252}
1253
1254static int fixup_free_set_id(void **param)
1255{

Callers

nothing calls this directly

Calls 1

select_rtpe_setFunction · 0.85

Tested by

no test coverage detected