from history it seems that you might be having bronchitis
giving rise to this problem.
Initially to control infection go for one antibiotic medicine course.
Infection Precipitate the bronchitis attack.
Take some broncho dilator medicine to get easy respiration.
Take some cough
expectorant to relieve cough.
if you are smoking.
Do deep respiratory exercise to strengthen respiratory muscles and open up all small bronchi oles.
Avoid dumpy and humid atmosphere.
Ok and take care.