[OpenSIPS-Devel] [opensips] Feature sipmsgvalidate for tofrom (#294)

Walter Doekes notifications at github.com
Mon Aug 11 10:43:20 CEST 2014


> -			goto failed;
> -		}
> -
> -		if (body.len && body.s) {
> -			/* if it really has body, check for content type */
> -			ret = SV_NO_CONTENT_TYPE;
> -			CHECK_HEADER("", content_type);
> -		}
> -	}
> +                if(flags & SIP_PARSE_CONTACT) {
> +                    /* iterate through Contact headers */
> +                    for(ptr = msg->contact; ptr; ptr = ptr->sibling) {
> +                        /* parse Contact header */
> +                        if(!ptr->parsed && (parse_contact(ptr) < 0 
> +                                    || !ptr->parsed)) {
> +                            strcpy(reason, "failed to parse \'Contact\' header");

No need to escape single quotes within double quoted strings.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/294/files#r16042545
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20140811/08e33e26/attachment.htm>


More information about the Devel mailing list