Phonon anomalies and gap anisotropy in substituted ceramics and oriented thin films of 123 superconductors