Um, wow! https://mosh.mit.edu/elevator.txt
If you are stuck in a elevator, wait for professional help to take you out.
The other piece of lift related advice (that I really enjoy saying in more crowded, rickety lifts): I once read if in a lift that is falling you should attempt to lie flat on the bottom of the lift to limit the impact - preferably on top of another human. Some hacker news physicist will prove me apocryphal here I'm sure...
Sometimes that doesn't work.
I've often seen (and used) lifts with notices up like:
Warning: does not level. Wheelchair users use other lift.
The man with the stroller steps in and the elevator cuts him in half. There's a trail of blood on the wall where the man use to be. It turns out the maintenance guy forgot to put out barriers saying the elevator was under repair. He was moving it from above and didn't realize people were getting in.
I was the flatmate. We never got a message through. I was busy on my own side courting a fine lady, and did not expect any sort of communication.
I learned of the story only the next day, when I went back to work.
The building in question is operated by the city council, which did great for low rent. I think many people, me included, would have thought of calling the council first, before the fire brigade, as the city keeps technicians round the clock (supposedly) to deal with such problems.
I'm rather pleased by the elegant use of this software for such a situation.
EMERGENCY trapped in our lift
PAN-PAN trapped in our lift
911 trapped in our lift
SOS stuk in our lift
In accordance with the 1995 EU Directive:
But it is not retroactive:
However, there were of course earlier regulations.