Interior and exterior resonances in acoustic scattering