Supposedly pulse dialling still works on (most?) new telephone equipment. That's what the vendors of classic phones I've been looking at are saying, anyway.
You had to have a good feel for the timing of the pulses or the trick didn't work. Taps and clicks broadband noise with a very sharp transient so it would have to be a very noisy environment indeed for the ambient noise to interfere. I've never played with any analog exchange equipment but the electronics to detect and count pulse dialing doesn't need to be very sophisticated.
"The pulses are generated through the making and breaking of the telephone connection (akin to flicking a light switch on and off); the audible clicks are a side effect of this."
It's confusing.
I have a modular synth here and have managed to rig up a patch that counts audio pulses (incoming signal goes through a rectifier and an envelope follower and on to an accumulator) and generates an appropriate tone for the counted number after a ~1/4 second pause, and doesn't much care whether I'm opening and closing the circuit or just tapping the front of the microphone. It's not a very complex circuit so maybe analog exchange switching works on a similar principle.