Holders Ivory Coast were knocked out of the Africa Cup of Nations following a 1-0 defeat in Oyem by Morocco.
Junior Kabananga scored the only goal as 10-man DR Congo claimed a hard-fought 1-0 win over Morocco at the Africa Cup of Nations.
Cameroon became the third team to qualify for next year's African Cup of Nations after a 1-0 victory over Mauritania.
The Court of Arbitration for Sport has lifted Morocco's ban from the next two editions of the Africa Cup of Nations.
Morocco have been suspended from the next two Africa Cup of Nations after pulling out of hosting this year's tournament.
Holders Nigeria failed to qualify for the 2015 Africa Cup of Nations after being held to a 2-2 draw by South Africa.