Contributed fix for https://java.net/jira/browse/JSIP-407 by ldehon

git-svn-id: https://svn.java.net/svn/jsip~svn@2307 8e71dc83-d81e-6649-80f2-80b843a9b2be
Contributed fix for https://java.net/jira/browse/JSIP-463 by ldehon

git-svn-id: https://svn.java.net/svn/jsip~svn@2308 8e71dc83-d81e-6649-80f2-80b843a9b2be