| 1403 | } |
| 1404 | |
| 1405 | static 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 | |
| 1425 | static int pv_get_dset(struct sip_msg *msg, pv_param_t *param, |
| 1426 | pv_value_t *res) |
nothing calls this directly
no test coverage detected