Hi,
If you have cough for 3-4 months then it should be thoroughly investigated.
You should get a chest x-ray pa view,
complete blood count, ESR, Sputum for AFB.
Fever, weight loss and lack of appetite are other symptoms which needs to be checked and appropriately managed.
Best wishes!