If you are coughing to the point of gagging and throwing up, you need to calm that cough! Try hot tea with lemon and lots of honey. Or an over the counter cough medication. If those do not help, get to a Doctor's office!
Steam inhalation is the best way to treat cough. Its much better than cough syrups. If steam inhalation doesnt help alone, buy ventoline ( a drug that opens and clears ur airways) from the pharmancy. Use it every 6 hours. Its available in nebulizer and inhaler forms. If u have fever with it u should consult ur doctir to prescribe antibiotics for you.