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

Function parse_min_expires

parser/parse_min_expires.c:31–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30
31int parse_min_expires(struct sip_msg *msg)
32{
33 if (msg->min_expires==NULL && parse_headers(msg,HDR_MIN_EXPIRES_F,0)!=0 ) {
34 LM_ERR("failed to parse Min=Expires\n");
35 return -1;
36 }
37 if (msg->min_expires) {
38 /* We will re-uise the min-se parser here */
39 if (msg->min_expires->parsed == 0 &&
40 parse_sst_success != parse_min_se_body(msg->min_expires)) {
41 set_err_info(OSER_EC_PARSER, OSER_EL_MEDIUM,
42 "error parsing Min-Expires header");
43 set_err_reply(400, "bad headers");
44 return -1;
45 }
46 return 0;
47 }
48 /* no hdr present */
49 return -1;
50}
51

Callers 1

run_reg_tm_cbackFunction · 0.85

Calls 3

parse_min_se_bodyFunction · 0.85
set_err_infoFunction · 0.85
set_err_replyFunction · 0.85

Tested by

no test coverage detected