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

Function pv_get_ruri_attr

pvar.c:702–717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700}
701
702static int pv_get_ruri_attr(struct sip_msg *msg, pv_param_t *param,
703 pv_value_t *res)
704{
705 if(msg==NULL)
706 return -1;
707
708 if(msg->first_line.type == SIP_REPLY) /* REPLY doesn't have a ruri */
709 return pv_get_null(msg, param, res);
710
711 if(msg->parsed_uri_ok==0 /* R-URI not parsed*/ && parse_sip_msg_uri(msg)<0)
712 {
713 LM_ERR("failed to parse the R-URI\n");
714 return pv_get_null(msg, param, res);
715 }
716 return pv_get_xuri_attr(msg, &(msg->parsed_uri), param, res);
717}
718
719static int pv_get_ouri_attr(struct sip_msg *msg, pv_param_t *param,
720 pv_value_t *res)

Callers

nothing calls this directly

Calls 3

pv_get_nullFunction · 0.85
parse_sip_msg_uriFunction · 0.85
pv_get_xuri_attrFunction · 0.85

Tested by

no test coverage detected