Generalization of the callaway thermal conductivity equation