added error reason phrase pvar param to sipmsg_validate() function
added proper return codes for all types of failures
Credits toNick Altmann