Unable to return to Activity after terminating JitsiMeetView call

I have to start a jitsi video call on clicking a notification button, which I do as follows:

   RemoteMessage.Notification notification = remoteMessage.getNotification();
    Intent intent = new Intent(this, CustomJitsiMeetActivity.class);
    intent.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
    PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent,
            PendingIntent.FLAG_ONE_SHOT);

    Uri defaultSoundUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
    NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
            .setLargeIcon(BitmapFactory.decodeResource(getResources(),R.drawable.ic_stat_name))
            .setSmallIcon(R.drawable.ic_stat_name)
            .setContentTitle(notification.getTitle())
            .setContentText(notification.getBody())
            .setAutoCancel(true)
            .setSound(defaultSoundUri)
            .setContentIntent(pendingIntent)
            .addAction(R.drawable.ic_call, getString(R.string.JOIN_CALL),
                    pendingIntent);

From CustomJitsiMeetActivity extends FragmentActivity implements JitsiMeetActivityInterface, JitsiMeetViewListener, how do I get back to MainActivity?

Inside CustomJitsiMeetActivity onCreate() I do

   view = new JitsiMeetView(this);
    JitsiMeetConferenceOptions options = new JitsiMeetConferenceOptions.Builder()
            .setRoom(getString(R.string.CALL_URL))
            .setSubject(getString(R.string.CALL_TITLE))
            .build();
    view.join(options);

    setContentView(view);

Where do I return to MainActivity?