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

Function pv_get_ouri_attr

pvar.c:719–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717}
718
719static int pv_get_ouri_attr(struct sip_msg *msg, pv_param_t *param,
720 pv_value_t *res)
721{
722 if(msg==NULL)
723 return -1;
724
725 if(msg->first_line.type == SIP_REPLY) /* REPLY doesn't have a ruri */
726 return pv_get_null(msg, param, res);
727
728 if(msg->parsed_orig_ruri_ok==0
729 /* orig R-URI not parsed*/ && parse_orig_ruri(msg)<0)
730 {
731 LM_ERR("failed to parse the R-URI\n");
732 return pv_get_null(msg, param, res);
733 }
734 return pv_get_xuri_attr(msg, &(msg->parsed_orig_ruri), param, res);
735}
736
737static int pv_get_path(struct sip_msg *msg, pv_param_t *param,
738 pv_value_t *res)

Callers

nothing calls this directly

Calls 3

pv_get_nullFunction · 0.85
parse_orig_ruriFunction · 0.85
pv_get_xuri_attrFunction · 0.85

Tested by

no test coverage detected