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

Function parse_orig_ruri

parser/parse_uri.c:1670–1690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1668
1669
1670int parse_orig_ruri(struct sip_msg* msg)
1671{
1672 str *uri;
1673
1674 if (msg->parsed_orig_ruri_ok)
1675 return 1;
1676
1677 uri = &REQ_LINE(msg).uri;
1678
1679 if (parse_uri(uri->s, uri->len, &msg->parsed_orig_ruri)<0) {
1680 LM_ERR("bad uri <%.*s>\n", uri->len, ZSW(uri->s));
1681 msg->parsed_orig_ruri_ok = 0;
1682 set_err_info(OSER_EC_PARSER, OSER_EL_MEDIUM,
1683 "error parsing incoming uri");
1684 set_err_reply(400, "bad i-uri");
1685 return -1;
1686 }
1687
1688 msg->parsed_orig_ruri_ok = 1;
1689 return 0;
1690}
1691
1692#define compare_uri_val(field,cmpfunc) \
1693 do { \

Callers 3

pv_get_ouriFunction · 0.85
pv_get_ouri_attrFunction · 0.85
call_dlg_get_uri_paramFunction · 0.85

Calls 3

parse_uriFunction · 0.85
set_err_infoFunction · 0.85
set_err_replyFunction · 0.85

Tested by

no test coverage detected