ASTANA - Syrian regime allies Russia and Iran and rebel supporter Turkey on Thursday signed a pact on a Moscow-backed plan to create safe zones in Syria meant to halt fighting in the war-torn country.

The Kremlin has been touting a plan to create safe zones in Syria that is aimed at “further pacification and cessation of hostilities.”

Several members of the rebel delegation, however, left the room shouting as the signing took place at talks in the Kazakh capital Astana, angry at regime ally Iran, an AFP reporter saw.  The Syrian government and rebel delegations are not signatories to the agreement, which was signed by the talks’ three sponsors.

Turkey’s foreign ministry said the zones would cover the whole of Idlib province, portions of the Latakia, Aleppo, Hama and Homs provinces, as well as the Ghouta suburb of Damascus. The zones will also include parts of the Deraa and Quneitra provinces, the ministry said.

Moscow’s draft proposal included four safe zones. The Kremlin’s envoy at the Astana talks, Alexander Lavrentiev, said the zones were set to remain in place for six months, a period that could eventually be extended.

The deal also foresees a halt in fighting in the zones, Turkey and Russia said.

The Turkish foreign ministry said the zones’ parameters would be determined shortly by a working group formed by the talks’ three sponsors.

“We welcome with satisfaction this memorandum, which foresees a halt in the use of all categories of arms among belligerents, including aerial weapons, as well as the rapid and uninterrupted influx of humanitarian aid toward those zones,” the ministry said in a statement. The aim of the zones, according to an Arabic version of the draft seen by AFP, is to “put an immediate end to the violence” and “provide the conditions for the safe, voluntary return of refugees” as well as the immediate delivery of relief supplies and medical aid, the document said.

But issues including which countries could police any safe zones remained unclear. Lavrentiev said Moscow was ready to send observers to monitor the zones, Russian news agencies reported.  Russian President Vladimir Putin said Wednesday that ways to monitor the zones would be an issue for separate talks.

The Kremlin’s plan echoes calls by US leader Donald Trump to establish safe zones in Syria.

Putin said Wednesday that “as far I could tell” the US leader broadly supported the idea in a phone call they held on Tuesday.  After talks with Turkey counterpart Recep Tayyip Erdogan on Wednesday, Putin said the proposed zones would also be no-fly areas if fighting on the ground there stopped entirely.

Erdogan said in comments published Thursday that Moscow’s plan to set up these zones in Syria would “50 percent” solve the six-year conflict.

Speaking to Turkish reporters aboard his plane flying back from the meeting in the Black Sea resort of Sochi, Erdogan said such zones would include Idlib, part of Aleppo province, El-Rastan in Homs province, a part of Damascus and part of Daraa.

“I hope that if this is implemented then 50 percent of the Syrian issue can be solved,” he said in comments published on the websites of the Hurriyet and Yeni Safak dailies. Details on what the de-escalation zones would comprise have been thin so far but Erdogan described the plan as a “new concept” and distinct from Ankara’s previous proposals for terror-free safe zones.

Turkey and Russia have been on sharply opposing sides in the Syria conflict, with Moscow supporting President Bashar al-Assad but Ankara pushing for his ouster.

Relations reached a dangerous low in November 2015 when Turkish warplanes shot down a Russian fighter jet over the Syrian border.

But a normalisation deal was reached last year and the two sides have been working ever more closely in a joint effort to end the fighting in Syria.

Yet tensions remain, and Erdogan said he had personally shown Putin at the talks a photograph purportedly showing Russian forces in Syria with Kurdish militia that Ankara deems to be a terror group.

He said Putin promised that Russian weapons were not ending up in the hands of the Peoples’ Protection Units (YPG) and vowed to investigate the picture.