improvement
-moved some changes from h323plus