Redirect URL on hangup?

I am also trying this in API. Tried several combinations. Nothing works. Any ideas? :pensive:

Use this api
api.on(‘readyToClose’, () => {
console.log(‘opaaaaa’);
});

A quick workaround adding to @Syonyk’s solution: rename close2.html to close2.html-old, then rename close3.html to close2.html. Since the system forces a redirect to close2.html regardless of the value of SHOW_PROMOTIONAL_CLOSE_PAGE, this workaround will redirect to whatever you set in the amended close2.html

I tried this, but its not fired when I press the hangup botton:

    api.on('videoConferenceLeft', (params) => {
        console.log(params);
      });

what’s wrong here?

Has anyone got this working , trying it in the docker version but doesn’t fire at all ?