A generalization of GF method to crystal vibrations