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

Function pv_get_pai

pvar.c:1405–1423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1403}
1404
1405static int pv_get_pai(struct sip_msg *msg, pv_param_t *param,
1406 pv_value_t *res)
1407{
1408 if(msg==NULL)
1409 return -1;
1410
1411 if(parse_pai_header(msg)==-1)
1412 {
1413 LM_DBG("no P-Asserted-Identity header\n");
1414 return pv_get_null(msg, param, res);
1415 }
1416
1417 if(msg->pai==NULL || get_pai(msg)==NULL) {
1418 LM_DBG("no P-Asserted-Identity header\n");
1419 return pv_get_null(msg, param, res);
1420 }
1421
1422 return pv_get_strval(msg, param, res, &(get_pai(msg)->uri));
1423}
1424
1425static int pv_get_dset(struct sip_msg *msg, pv_param_t *param,
1426 pv_value_t *res)

Callers

nothing calls this directly

Calls 3

parse_pai_headerFunction · 0.85
pv_get_nullFunction · 0.85
pv_get_strvalFunction · 0.85

Tested by

no test coverage detected