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

Function pv_get_rpid

pvar.c:1333–1349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1331}
1332
1333static int pv_get_rpid(struct sip_msg *msg, pv_param_t *param,
1334 pv_value_t *res)
1335{
1336 if(msg==NULL)
1337 return -1;
1338
1339 if(parse_rpid_header(msg)==-1)
1340 {
1341 LM_DBG("no RPID header\n");
1342 return pv_get_null(msg, param, res);
1343 }
1344
1345 if(msg->rpid==NULL || get_rpid(msg)==NULL)
1346 return pv_get_null(msg, param, res);
1347
1348 return pv_get_strval(msg, param, res, &(get_rpid(msg)->uri));
1349}
1350
1351static int pv_get_ppi_attr(struct sip_msg *msg, pv_param_t *param,
1352 pv_value_t *res)

Callers

nothing calls this directly

Calls 3

parse_rpid_headerFunction · 0.85
pv_get_nullFunction · 0.85
pv_get_strvalFunction · 0.85

Tested by

no test coverage detected