Quantum scattering in chaotic and non-chaotic junctions