Calculation of the two-body scattering T-matrix in configuration space