adds jni wrapper for call hold and resume