An inverse problem for an absorbing medium with multiple discontinuities