Towards a precise determination of the scattering amplitudes of the charmed and light-flavor pseudoscalar mesons