Perhaps I am thinking about this incorrectly when a photon arrives at an event horizon, from an observers perspective time has essentially stopped for it and the photon has red shifted completely. Before redshifting, the photon would have blue-shifted due to gravity. I cannot think of how to calculate this and I am hoping someone could shed some light on this.
Also, what happens to the energy of the photon since it is redshifted completely?