The TwiML that executes via the waitUrl can only contain Say, Play, and Redirect verbs. Dial, Gather, and Record are not allowed.
We all do sometimes; code is hard. Get help now from our
support team, or lean on
the wisdom of the crowd browsing the
Twilio tag on Stack Overflow.