Thanks for using Healthcaremagic,
It seems that you are having viral or atypical infection
of lungs; it is possible to get secondary bacterial infection that can cause productive cough
Otherwise viral infection is self limiting disease usually takes 7 to 10 days to recover, symptomatic relief may be obtained by taking paracetamol
and cough mixture, antihistamine and decongestant medicine often provide symptomatic relief.
Taking steam inhalation can help to relieve congestion of chest, please continue treatment as suggested by your physician and hope you will improve in few days.
Keep yourself well hydrated and take rest.
Dr.Akhilesh Dubey M.D.