Bragg resonance in pipe systems with discrete defects