An inverse spectral problem for Sturm-Liouville operators with discontinuous coefficients