* Gaddafi says he’s opening armouries to defend Tripoli
* Rebel forces close in on capital
* Questions remain over divisions in rebel ranks (Recasts with rebels inside Tripoli, adds details)
By Ulf Laessing and Missy Ryan
AL-MAYA/TRIPOLI Aug 21 (Reuters) - Rebel fighters streamed into the outskirts of Tripoli on Sunday with little sign of resistance, despite a call by Muammar Gaddafi for citizens to take up arms and save his 41-year-old regime from annihilation.
A convoy of rebels entered a western neighbourhood of the city firing their weapons into the air, a witness said. Sky television said some fighters were only 8 km (five miles) from the centre and were being welcomed by civilians pouring into the streets.
Thousands of rebel fighters were seen earlier in the day 20 km (12 miles) west of the city centre, aiming to join fighters inside who began an uprising late on Saturday, a Reuters correspondent said.
“I am afraid if we don’t act, they will burn Tripoli,” Gaddafi said in an audio address broadcast on state television. “There will be no more water, food, electricity or freedom.”
Bursts of gunfire and blasts from rocket-propelled grenades rang out near a hotel in Tripoli where foreign media are staying, a Reuters correspondent in the hotel said.
In a coordinated revolt that rebels have been secretly planning for months to end Gaddafi’s 41-year rule, shooting started on Saturday night across Tripoli moments after Muslim clerics, using the loudspeakers of mosque minarets, called people on to the streets.
The fighting inside Tripoli, combined with rebel advances into the outskirts of the city, appeared to signal the decisive phase in a six-month conflict that has become the bloodiest of the “Arab Spring” uprisings and embroiled NATO powers.
Gaddafi, in his second audio broadcast in 24 hours, dismissed the rebels as rats.
“I am giving the order to open the weapons stockpiles,” Gaddafi said. “I call on all Libyans to join this fight. Those who are afraid, give your weapons to your mothers or sisters.
“Go out, I am with you until the end. I am in Tripoli. We will ... win.”
A Libyan government official told Reuters that 376 people on both sides of the conflict were killed in fighting overnight on Saturday in Tripoli, with about 1,000 others wounded.
“Gaddafi’s chances for a safe exit are diminishing by the hour,” said Ashour Shamis, a Libyan opposition activist and editor based in Britain.
But Gaddafi’s fall, after four decades in power, is far from certain. His security forces did not buckle, and the city is much bigger than anything the mostly amateur anti-Gaddafi fighters, with their scavenged weapons and mismatched uniforms, have ever tackled.
If the Libyan leader is forced from power, there are question marks over whether the opposition can restore stability in this oil exporting country. The rebels’ own ranks have been racked by disputes and rivalry.
Rebels said after a night of heavy fighting they controlled a handful of city neighbourhoods. Whether they hold on could depend on the speed with which the other rebels reach Tripoli.
“The rebels may have risen too early in Tripoli and the result could be a lot of messy fighting,” said Oliver Miles, a former British ambassador to Libya. “The regime may not have collapsed in the city to quite the extent they think it has.”
But the rebel advance towards the city has been rapid. In the past 48 hours, the rebels west of Tripoli have advanced about 30 km, halving the distance between them and the capital.
Government forces put up a brief fight at the village of Al-Maya, leaving behind a burned-out tank and cars that had been torched. “I am very happy,” said one resident.
Anti-Gaddafi fighters streaming through paused long enough to daub graffiti on walls in the village. One read “We are here and we are fighting Gaddafi,” another “God is great.” They then moved on towards Tripoli.
In Benghazi, the eastern Libyan city where the anti-Gaddafi revolt started and where the rebels have their main stronghold, a senior official said everything was going according to plan.
“Our revolutionaries are controlling several neighbourhoods and others are coming in from outside the city to join their brothers at this time,” Abdel Hafiz Ghoga, vice-chairman of the rebel National Transition Council, told Reuters.
A spokesman for Gaddafi, in a briefing for foreign reporters, underlined the message of defiance.
The armed units defending Tripoli from the rebels “wholeheartedly believe that if this city is captured the blood will run everywhere so they may as well fight to the end”, said spokesman Moussa Ibrahim.
“We hold Mr Obama, Mr Cameron and Mr Sarkozy morally responsible for every single unnecessary death that takes place in this country,” he said.
A diplomatic source in Paris, where the government has closely backed the rebels, said underground rebel cells in the capital had been following detailed plans drawn up months ago and had been waiting for a signal to act.
That signal was “iftar” — the moment when Muslims observing the holy months of Ramadan break their daily fast. It was at this moment that imams started broadcasting their message from the mosques, residents said.
But the overnight fighting inside the city, while fierce, was not decisive. Rebels said they controlled all or parts of the Tajourah, Fashloom and Souk al-Jumaa neighourhoods, yet there was no city-wide rebellion.
In Tripoli on Sunday, the two sides appeared to be jockeying for control of roof terraces to use as firing positions, possibly in preparation for a new burst of fighting after dark.
A rebel activist in the city said pro-Gaddafi forces had put snipers on the rooftops of buildings around Bab al-Aziziyah, Gaddafi’s compound, and on the top of a nearby water tower.
As he spoke, single gunshots could be heard in the background, at intervals of a few seconds.
“Gaddafi’s forces are getting reinforcements to comb the capital,” said the activist, who spoke by telephone to a Reuters reporter outside Libya.
“Residents are crying, seeking help. One resident was martyred, many were wounded,” he said. It was not immediately possible to verify his account independently. (Additional reporting by Missy Ryan in Tripoli, Robert Birsel in Benghazi, Libya, William Maclean in London, Hamid Ould Ahmed in Algiers; Writing by Christian Lowe and Richard Valdmanis; Editing by Andrew Roche)