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

Function parse_sip_msg_uri

parser/parse_uri.c:1645–1667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1643
1644
1645int parse_sip_msg_uri(struct sip_msg* msg)
1646{
1647 char* tmp;
1648 int tmp_len;
1649 if (msg->parsed_uri_ok) return 1;
1650
1651 if (msg->new_uri.s){
1652 tmp=msg->new_uri.s;
1653 tmp_len=msg->new_uri.len;
1654 }else{
1655 tmp=msg->first_line.u.request.uri.s;
1656 tmp_len=msg->first_line.u.request.uri.len;
1657 }
1658 if (parse_uri(tmp, tmp_len, &msg->parsed_uri)<0){
1659 LM_ERR("bad uri <%.*s>\n", tmp_len, tmp);
1660 msg->parsed_uri_ok=0;
1661 set_err_info(OSER_EC_PARSER, OSER_EL_MEDIUM, "error parsing r-uri");
1662 set_err_reply(400, "bad r-uri");
1663 return -1;
1664 }
1665 msg->parsed_uri_ok=1;
1666 return 0;
1667}
1668
1669
1670int parse_orig_ruri(struct sip_msg* msg)

Callers 15

w_forwardFunction · 0.85
pv_get_ruriFunction · 0.85
pv_get_ruri_attrFunction · 0.85
allow_routingFunction · 0.85
perl_execFunction · 0.85
alias_db_lookupFunction · 0.85
ds_hash_ruriFunction · 0.85
rls_handle_subscribeFunction · 0.85
handle_publishFunction · 0.85
handle_subscribeFunction · 0.85
topology_hiding_matchFunction · 0.85
w_sip_validateFunction · 0.85

Calls 3

parse_uriFunction · 0.85
set_err_infoFunction · 0.85
set_err_replyFunction · 0.85

Tested by

no test coverage detected