SOCHI, Russia (Reuters) - Iranian President Hassan Rouhani said on Wednesday that foreign interference in the conflict in Syria must end and foreign military presence in the country may only be acceptable if it is by the invitation of Syria's government.

Rouhani, who stopped short of naming any specific nations, also told his Russian counterparts Vladimir Putin and Turkey's Tayyip Erdogan that now there was the need to uproot the last terrorist cells in Syria and the ground was prepared for political settlement.

Rouhani was speaking at the three leaders' meeting in the southern Russian city of Sochi.