| 29 | |
| 30 | |
| 31 | int 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 |
no test coverage detected