Pregnant and bad cough

I'm 25 weeks pregnant and have some really deep chest congestion and a deep painful cough. Trying to refrain from going to the doctor, what can I take?