My daughter was "colicky" from birth til around 8 months. It's been years so I don't recall the name of the product but I got some drops from an Asian/Indian store and it worked. Everything else failed but one of our hippy pediatrician told me about these drops I think from India and he was right on point.
My son is almost 5 and still gets that from time to time. did you maybe ask for a stool softner?
Try infant probiotics. It might be gas or it might be teething, but if it is gas, probiotics can help. They are available in powder form at the health-food section or health-food store, or are available in adult form (cut the amount to about 1/10th of what is recommended for an adult) where vitamins are sold, if there is any kind of pretense to health-food kind of vitamins. Failing that, since probiotics are the same kind of live cultures that are found in live-culture yogurt, you might see if she will take just the tiniest teaspoon of live-culture yogurt. I would not give more than that of the yogurt, as she is really too young for anything but breast milk or formula, but that might be enough to give her the helpful stomach flora that comes from the yogurt.