Amitriptyline can be effective, but it doesn't work quickly. Some kids have to take it for weeks before seeing much response.
With these prolonged symptoms, you ought to be working with a pediatric gastroenterologist to confirm the diagnosis.
Best of luck!