Welcome to Ask The Doctor.
You seem to be suffering Bronchitis or Bronchial Asthma.
So, the pain you are having is muscular pain because of cough only.
I would advise in such scenario:
1. Hemogram with ESR
3. Chest X-ray
If the Chest Xray and these blood investigations show no sign of infection then, you would be treated for Bronchial Asthma / Bronchitis.
In such scenario, your doctor would prescribe you inhalers containing bronchi dilators like Salbutamol.
You might also require short dose of Steroid inhaler like Budesonide.
Share my opinion with your doctor before acting upon it.
I hope it helps.
These Q&A’s are for educational purposes and should not be relied upon as a substitute for medical advice you may receive from your physician. If you have a medical emergency, please call 911. These answers do not constitute or initiate a patient/doctor relationship.