Loud asthmatic cough and trouble breathing?

I am 28 weeks pregnant and have developed a cough that sounds asthmatic and I am having a hard time breathing. It’s getting worse and I feel like I’m going to hurt my baby or myself. What should I do? Is that something to call the on call doctor for? Or should I just take safe cough medicine? Help!