new java bindings copied from pjsip