When we receive a call, we play a prompt to the caller that says something along the lines of "we may record the call for quality and training purposes".
The TWiML we send in response to the incoming call is the following.
<Response>
<Play>http://domain.tld/may_record_call.wav</Play>
<Dial timeout="10" callerId="5555551234" record="record-from-ringing" action="https://my_url.com/action" method="POST">
<Client>my_user</Client>
</Dial>
</Response>
Our recording is created properly, but it does not include the prompt before the call is placed.
We would like proof that we properly played the prompt, and ideally it would be included in the recording we make, but the dial recording options do not seem to allow this.
record
The 'record' attribute lets you record both legs of a call within the associated verb. When using record-from-answer, the recording will begin when a call is answered. When using record-from ringing, the recording will begin when the ringing starts. In both cases, a RecordingUrl parameter will be sent to the 'action' URL on the associated verb. You must set an 'action' URL to receive the RecordingUrl.
I can't add the play after the dial, because when the call is answered, further verbs after the dial are not executed.
My question is how do I record my call recording warning as part of my call recording? Is there another hidden record value that can be used? Is there a way to get the dial to start, but play the prompt to caller?