| 615 | } |
| 616 | |
| 617 | static int pv_get_ruri(struct sip_msg *msg, pv_param_t *param, |
| 618 | pv_value_t *res) |
| 619 | { |
| 620 | if(msg==NULL || res==NULL) |
| 621 | return -1; |
| 622 | |
| 623 | if(msg->first_line.type == SIP_REPLY) /* REPLY doesn't have a ruri */ |
| 624 | return pv_get_null(msg, param, res); |
| 625 | |
| 626 | if(msg->parsed_uri_ok==0 /* R-URI not parsed*/ && parse_sip_msg_uri(msg)<0) |
| 627 | { |
| 628 | LM_ERR("failed to parse the R-URI\n"); |
| 629 | return pv_get_null(msg, param, res); |
| 630 | } |
| 631 | |
| 632 | if (msg->new_uri.s!=NULL) |
| 633 | return pv_get_strval(msg, param, res, &msg->new_uri); |
| 634 | return pv_get_strval(msg, param, res, &msg->first_line.u.request.uri); |
| 635 | } |
| 636 | |
| 637 | static int pv_get_ru_q(struct sip_msg *msg, pv_param_t *param, |
| 638 | pv_value_t *res) |
nothing calls this directly
no test coverage detected