Red and blue shift in spherical and axisymmetric spacetimes and astrophysical constraints