add register api for openCallbackContext