Electron-phonon interaction at the direct gap of the copper halides