So here's my issue:
- I initiate a Twilio call via the API
- When the call is picked up, Twilio reaches out to my Twiml server and gets a response containing the following (notice the "record" parameter of the Dial verb):
<Dial callerId="555-555-5555" record="record-from-ringing">
<Number statusBallbackEvent="completed" statusCallbackMethod="POST" statusCallback="https://myCallback.com">
555-555-5556
</Number>
</Dial>
The call gets placed and is recorded correctly, but the value of Call Sid for the recording is always the Sid of the parent call. This can be problematic if I use multiple Dial verbs during the course of one call.
Is there a way to figure out which child call initiated the recording?