SIP Validation Support

OpenSIPS has been enhanced with a new function, sipmsg_validate, that
verifies if the received SIP request or reply is compliant with the
RFC3261[1]. The function can be found in the new sipmsgops module[2],
along with all the SIP aware messages from the textops module[3]. In
consequence, all the SIP related functions were moved from the textops
module to the sipmsgops module.

The new sipmsg_validate function can be used to prevent malformed SIP
messages from propagating through your network, and also avoid expensive
processing them from the start.

Any feedback will be really appreciated.

[1] http://www.ietf.org/rfc/rfc3261.txt
[2] http://www.opensips.org/html/docs/modules/devel/sipmsgops.html
[3] http://www.opensips.org/html/docs/modules/devel/textops.html

Posted by Vladut-Stefan Paiu 2012-02-21