It seems that you have a severe infection and hence not getting better.
Get a chest xray to see if u have had any pneumonia
Also a spirometry
is a must to differentiate it from any asthma
Sometimes a variable kind of Interstitial lung disease occurs in smokers and is known as DIP/RBILD again that has features and symptoms like bronchitis
but the treatment is different.
See a chest physician