Constipated

Kristy
My baby is four months . She has been on soy for almost a month. This is the second time she has been constipated . I've had to push her poop out everytime . I don't know what to do. I hate seeing her getting so aggravated and crying till it comes out , even if it takes a 10 mins to get it to come out. Please help me. What can I do for her so we don't go through this again?