Solving Bethe–Salpeter Equation for Scattering States