I have it currently set up where if a twilio number is called, the call will be recorded and the person that dialed the number will hear "This call may be recorded for quality assurance purposes" before hearing any ringing. The response for the hook is
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say>
This call may be recorded for quality assurance purposes.
</Say>
<Dial record="record-from-answer"
recordingStatusCallback="CALL_RECORD_URL"
recordingStatusCallbackEvent="completed">
<Number url="CALL_PLAYBACK_URL">
+1yyyyyyyyyy
</Number>
</Dial>
</Response>
It is also set up where the "CALL_PLAYBACK_URL" returns the following:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say>
This call may be recorded for quality assurance purposes.
</Say>
</Response>
When I attempt to call the twilio number, the person that is CALLING the number gets the correct message before hearing any ringing, but the customer picking up the number does not hear anything after hitting accept, as the call instantly gets connected. Is there anything that I am missing with this? Should the value of the url
for the Number part be the full url or just the path (https://www.example.com/callbackurl
vs /callbackurl
)? I have tried both with no success
I've looked at other ones such as Twilio Say "Call is being recorded" after customer answers call from web application and https://www.twilio.com/docs/voice/tutorials/ivr-screening-java-servlets