Any green respiratory secretions can mean an infection. Do not suppress them, instead cough as often as you can. If you have not already, give your MD a call since this has not cleared up in 2 months. Are you a smoker? Have you recently had the flu, pneumonia?
Hi, green mucus is usually associated with viral infections, generally, mucolytics along with antibiotics (to prevent bacterial superimposed infections) are prescribed. Try steam inhalation along with ambroxol and bronchodilator (terbutaline, salbutamol etc) to ease out coughing.
Better consult doctor to rule out bronchoconstriction. Prolonged cough should be investigated.