Resistance rates of 50% have been reported for ureaplasma
and doxycycline. M hominis is resistant to erythromycin,
azithromycin,
and clarithromycin. Levofloxacin, another common drug, also has been shown to have a high failure rate for M genitalium. This is why knowing which infection you have is very valuable in determining the correct treatment.
Also, being in Africa, I'd make sure you had a full battery of tests 3 months from now to look for all other STDs, especially HIV.