DAMASCUS (AFP) - Thousands of people rallied in the Syrian capital Wednesday in support of President Bashar al-Assad's regime, which has been shaken by mass protests for nearly seven months, as a court freed a top dissident. An AFP journalist said the demonstration followed a call on the Facebook page "My homeland, Syria" by Assad supporters to rally to "reinforce unity and solidarity with the families of martyrs and thank Russia and China for their stand against the conspiracy" in the UN Security Council. The demonstration was also to denounce the Syrian National Council (SNC), an umbrella body formally set up on October 2 and pulling together most of the groups opposing Assad. Placards in the central Sabaat Bahrat district proclaimed "The army and people with you, Bashar al-Assad" and "Syria is our country and Assad our president." A giant portrait of the president dominated the area. Russia and China, both permanent members of the UN Security Council, used their vetoes on October 4 to block a Western resolution threatening Assad's regime with "measures" if it did not end its bloody crackdown on dissent. The United Nations says the repression has caused more than 2,900 deaths since protests erupted in mid-March. Syrian authorities accuse "armed terrorist gangs" of being behind the trouble. Damascus has threatened retaliation against any country that recognises the SNC. But Qatari emir Sheikh Hamad bin Khalifa Al-Thani on Wednesday hailed as an "important step" the creation of the opposition front, urging Assad to talk to them. "It is in the interest of Syria that the government sits with and reaches an agreement with this council over the nature of a new constitution that would preserve the balance of the Syrian nation," the ruler of the energy-rich Gulf state said in remarks aired on the Doha-based Al-Jazeera news channel. "I think that the council enjoys legitimacy among the protesters in Syria," he added. On Monday the European Union welcomed the council's formation and urged the world to do the same, as it readied new sanctions against Assad's regime. Back in Damascus, prominent dissident Walid al-Bunni, who was arrested in August, was freed on bail on Wednesday, his lawyer Michel Shammas said. "The Damascus court of appeals on Wednesday freed opposition figure Walid al-Bunni in exchange for a bail of 1,150 Syrian pounds ($23). He will be tried later for inciting (anti-regime) demonstrations and sectarianism," he said. Bunni was detained on August 6 along with his two sons, who were released shortly afterwards. In 2000, Bunni was one of the prime movers of the short-lived "Damascus Spring" amid hopes for reform that followed Assad's accession to the presidency after the death of his father, Hafez. Bunni was one of 12 signatories of the 2005 Damascus Declaration, which called for democratic change in Syria, who were sentenced to 30 months in jail in October 2008 for "damaging the state." He was last released in June 2010. In May, rights group Amnesty International said Bunni was one of several rights activists in Syria "forced into hiding after receiving threats from Syrian authorities." Random arrest campaigns were under way on Wednesday in the central city of Homs, with activists also reporting a "shooting near police headquarters" and gunfire in several neighbourhoods including Bab Amr. Security forces raided homes in a northwestern village in Idlib province, the Local Coordination Committees activist network said. Meanwhile, in the United States, a Syrian-born US citizen was charged with spying for filming anti-regime protesters and providing material to intelligence agencies in a bid to silence the opposition, officials said. A federal grand jury charged Mohamad Anas Haitham Soueid, 47, on October 5 in a six-count indictment for his efforts against activists in the United States and Syria opposed to Assad's regime. He was arrested on Tuesday.