West Africa's regional bloc Ecowas has agreed a deal for Mali's coup leader Capt Amadou Sanogo to get the benefits of a former head of state.

These include a salary, a residence and state bodyguards.

Under the deal, interim leader Djouncounda Traore will stay in office for a year - his initial mandate was to expire on Monday.

The coup, and ensuing rebel seizure of northern Mali, have led many thousands of people to flee their homes.

Aid agencies say they are extremely concerned about the humanitarian situation in Mali, which is also suffering from the regional drought.

After meeting Capt Sanogo in the Malian capital, Bamako, Chief Ecowas mediator, Burkina Faso Foreign Minister Djibrill Bassole, also said the coup leader would be able to consult Mr Traore, 70, and his prime minister until new elections are held next year.

Ivory Coast's Minister of African Integration Adama Bictogo told the AFP news agency that the mediation team was "leaving with the feeling that we have accomplished our mission".

Last week, Ecowas threatened to reimpose sanctions against the coup leaders, accusing them of continuing to meddle in the country's politics.

Capt Sanogo seized power in March and led the country for about three weeks, before handing power to Mr Traore, the former speaker of parliament, in the face of intense international pressure and the rapid advance of rebels, whose seized the whole of the north - an area the size of France.

Bamako-based journalist Martin Vogl says that as part of the deal, the government is supposed to focus on recovering the north from a mixture of Tuareg separatists and Islamist fighters.

Some of the groups have links to al-Qaeda's branch in the region, al-Qaeda in the Islamic Maghreb.

Ecowas has said it is preparing to send 3,000 troops to Mali to help the country reclaim its northern territory, but no date has been set for the force to arrive.

-BBC