What to do about Constipation

My almost 1 year old is very consipated lately. Anytime she eats no matter what it is she will get backed up, when just a few weeks ago she was fine. The dr said to give her pear or prune juice one other time she was consipated but it only helps for a limited time. Could she be allergic to come food she eats? Or is is this something I should call her pediatrician about? She already has a milk allergy so we stay away from that.