Controllable scattering of a single photon inside a one-dimensional coupled resonator waveguide with second-order nonlinearity.