Ghana finished top of Group C of the Africa Cup of Nations qualifiers on Sunday after defeating Sao Tome and Principe 3-1 at the Accra Sports Stadium.
Sudan also the joined the Black Stars in reaching the tournament scheduled to be played in Cameroon next year after defeating South Africa 2-0 in the played on Omdurman.
The result means Bafana Bafana failed to qualify for the tournament as they failed to secure the needed draw that would have secured their place in the tournament.
Ghana finished top of the group with 13 points while Sudan placed second with 12 points.
South Africa had ten points which means they finish third in the group while Sao Tome and Principe finished bottom of the group with zero points.
Below are the rankings after the final group standings
Earlier on Sunday, Group J concluded with an exciting game in Tunis in which a 4th-minute Jaziri goal and an Akapo own goal helped Tunisia to a 2-1 win over Equatorial Guinea.
Tanzania, meanwhile, beat Libya 1-0 thanks to a scrambled goal from Simon Msuva.
And in Group A – from which Chad had already been disqualified – Namibia beat group winners Guinea 2-1 thanks to two goals from captain Peter Shalulile. Mamadou Kane scored Guinea’s effort.