I need to record a voice of my clients who is try to reach one of our advisors. This should happen when there is timeout
User calls -->Number-----> If timeout --> say(Record your message)--> on end of the recording it should call the recordingStatusCallBack
User Call --> Number --> answer call success --> On end of the call it should call method. Not sure where should we put the action either on number (statuscallback) or on the dial Action verb?
To achieve this I am try with the below twiML
<Response>
<Dial callerId="+123124" record="true" timeout="10">
<Number
statusCallback="https://<123134>.ngrok.io/ttwilio/callStatusCallBack"
statusCallbackEvent="completed"
statusCallbackMethod="POST">+1232424/Number>
</Dial>
<Say>Please Record you message</Say>
<Record
recordingStatusCallback=
"https://<123134>.ngrok.io/ttwilio/callStatusCallback"
recordingStatusCallbackMethod="POST"/>
</Response>
This works fine when there is a timeout but when the call is successfully ended twilio still ask for the user to "Please Record you message"
How to achieve this task?