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

Function set_rtpengine_set_f

modules/rtpengine/rtpengine.c:3882–3899  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3880/* This function assumes p points to a line of requested type. */
3881
3882static int
3883set_rtpengine_set_f(struct sip_msg * msg, rtpe_set_link_t *rtpl)
3884{
3885 struct rtpe_set *set;
3886
3887 if (rtpl->type == RTPE_SET_NONE) {
3888 set = select_rtpe_set(rtpl->v.id);
3889 if(set==NULL) {
3890 LM_ERR("could not locate rtpengine set %d\n", rtpl->v.id);
3891 return -1;
3892 }
3893 } else
3894 set = rtpl->v.rset;
3895
3896 rtpe_ctx_set_fill(set);
3897
3898 return 1;
3899}
3900
3901static int
3902rtpengine_manage(struct sip_msg *msg, str *flags, pv_spec_t *spvar,

Callers

nothing calls this directly

Calls 2

select_rtpe_setFunction · 0.85
rtpe_ctx_set_fillFunction · 0.85

Tested by

no test coverage detected