Merge #1050, #1052, #1053, #1054 into the main trunk.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3175 74dad513-b988-da41-8d7b-12977e46ad98