This trick really used to work. The phone company must have hated this movie.

 

The electronic lock trick, however, was made up by the writers. It's still cool, though.