Vladimir Putin has welcomed the presidents of Iran and Turkey to map out a strategy for when the fighting stops.