HI, thanks for using healthcare magicHeadaches
can occur with viral illnesses such as viral respiratory tract
infections ( common cold
Bronchits which is inflammation and infection of the bronchial passages in the lungs is likely the cause of your productive persistent cough
is more commonly viral as your doctor indicates even in the presence of the change in colour of your sputum.
The use of mucolytics to help decrease the viscosity of the mucus and medication to help with the patency of the airways, may help to relieve your symptoms.
Most mucolytics would be available over the counter.
I hope this helps