Radiation transfer in a real spectrum. Integration with respect to the frequency and angles