Turkish prime minister Tayyip Erdogan warned today his country was "not far" from war with Syria following cross-border attacks this week.
In a belligerent speech to a crowd in Istanbul, Mr Erdogan warned the government of Syrian president Bashar al-Assad it would be making a fatal mistake if it picked a fight with Turkey.
The speech followed a Syrian mortar barrage on a town in southeast Turkey that killed five people on Tuesday.
Turkish artillery bombarded Syrian military targets on Wednesday and yesterday in response, killing several Syrian soldiers, and the Turkish parliament has authorised cross-border military action in the event of further aggression.
"We are not interested in war, but we're not far from it either," Mr Erdogan said in his speech. "Those who attempt to test Turkey's deterrence, its decisiveness, its capacity, I say here they are making a fatal mistake."
At the United Nations, the Security Council condemned the original Syrian attack and demanded that such violations of international law stop immediately.
The United States has said it stands by its Nato allies right to defend itself against aggression spilling over from Syria's war.
The cross-border violence was the most serious so far in the conflict, now in its 19th month, and underscored how it could flare across the region.
Turkey, once an Assad ally and now a leading voice in calls for him to quit, shelters more than 90,000 Syrian refugees in camps on its territory and has allowed rebel army leaders sanctuary.
Violence has also spilled over into Lebanon.
More than 30,000 people have been killed in the revolt against Dr Assad, which began with peaceful street protests but is now a full-scale civil war also fought on sectarian lines.
Across the country about 180 people were killed in violence yesterday, including 48 government soldiers, the British-based Syrian Observatory for Human Rights said.
The rebels said they had captured an air defence base with a cache of missiles outside Damascus, a boost to their campaign after a series of setbacks in the capital.
Video posted on YouTube of the aftermath of the assault showed dozens of rebels dressed in army fatigues celebrating as black smoke rose from a military installation behind them.
A middle-aged man holding a rifle says the attack was carried out by a rebel battalion from the town of Douma. It also showed rebels at a weapons cache which included what appeared to be part of a surface-to-air missile.
It was not possible to independently verify the videos. Access to Syria for foreign journalists is restricted by the Syrian government.
Although fighting often takes place in the Damascus suburbs, rebel forces have been unable to hold areas for long in the face of government artillery and air power. They have staged devastating bomb attacks on government and military offices in the heart of the city, however.
Syria's ally Russia said it had received assurances from Damascus that the strike on Turkey had been a tragic accident but Mr Erdogan dismissed it, saying this was the eighth time Syrian mortar rounds had hit Turkish ground.
Turkey has made clear it is ready to launch retaliatory strikes again if the war spills over the border but it has also said it will act under international law and in coordination with other foreign powers.