Ivory Coast's government has struck an agreement with mutinous soldiers, shortly after talks were interrupted by gunfire.
Shots were heard in the second-largest city, Bouake, late on Friday, and at the army barracks in the commercial capital, Abidjan, sparking fears that negotiations were failing.
The two sides met for hours in Bouake before reaching a deal.
It resolves a pay dispute that sparked a two-day uprising last week.
Last week's mutiny was calmed when the government agreed to the military's demands, but the terms were still in dispute.
A negotiator for the military said the renewed gunfire stemmed from fears that the government was going back on an agreement to pay the soldiers' bonuses.
About 8,000 soldiers were promised 12m CFA francs ($19,300) each, but none of this money had so far been paid.
"We've reached an agreement. They will pay 5m on Monday and the rest each month," Sergeant Mamadou Kone, one of the mutineers' negotiators, told Reuters news agency.
"We haven't finished up, but that's the most important thing."
Defence Minister Alain-Richard Donwahi meeting soldiers in Bouake on Friday
Earlier on Friday evening, hundreds of soldiers surrounded the building in Bouake where talks were taking place, and fired weapons in the air.
Defence Minister Alain-Richard Donwahi was inside, having flown back into the city earlier in the day to lead negotiations.
Mr Donwahi was briefly held hostage by the military earlier this week.
President Alassane Ouattara appealed for calm following the mutiny, and dismissed the heads of the army, police and paramilitary gendarmes.
The mutiny began in Bouake a week ago, with soldiers firing rocket launchers.
Protests also took place in the cities of Man, Daloa, Daoukro, Odienne and Korhogo, and, the following day, soldiers took over the army headquarters in Abidjan.
President Ouattara went on national television on Sunday to announce a deal had been struck.
"I confirm that I have agreed to take into account the demands of the soldiers over bonuses and better working conditions," he said.
Aside from better pay, the agreement was reported to include an amnesty for the mutineers.
The mutiny raised fears of a resurgence of the violence seen during Ivory Coast's 10-year civil war, which ended in 2011.
Some of the mutineers were thought to be former rebels who joined the army after the conflict.
Latest Stories
-
Nigerians mourn woman allegedly beheaded by gospel singer
15 minutes -
Sudan shelling kills more than 100 civilians near capital
22 minutes -
Mahama hits the ground running: Key reforms and directives in first days of office
26 minutes -
Relatives wait for news as body bags hauled from South African mine
33 minutes -
Kate reveals she is in remission from cancer
53 minutes -
UK’s Treasury minister resigns over anti-corruption investigation in Bangladesh
1 hour -
Fire Service calls for installation of fire extinguishers, detectors at marketplaces
1 hour -
Kofi Adu Domfeh: Prayers for rain in LA and the call for climate action
1 hour -
Don’t appoint Bawku or Kusasi native as U/E Regional Minister – Asamoah Boateng advises Mahama on averting dispute
1 hour -
Bono COCOBOD seizes trucks loaded with bags of cocoa, lumber
2 hours -
Recent Appointment Committees have become a theatre – Draman
2 hours -
Mahama appoints Justina Nelson as Acting CEO of MIIF
3 hours -
Tribunal system was evil, why does Mahama gov’t want it back? – Ansa-Asare
3 hours -
Kurt Okraku files nomination for CAF Executive Committee position
4 hours -
Criminologist urges police to engage communities to prevent attacks on security personnel
4 hours