Both civilian and military attack aircraft have communications that allow for monitoring multiple frequencies. And there is the radar the Turkish pilots could have used to light up and warn the Russian aircraft.
The signs point to this being an ambush attack on aircraft flying a routine route, IMHO.