We are able to record voice mail with Twilio Voice and Node.js and we have the recording URL. We need this recording to be delivered to the user's voice mail inbox (carrier side).
This is what we've got so far.
Endpoint for recording:
twiml.say('Please leave a message on the call.\nPress the star key when finished.');
twiml.record({
action: `${serverURL}/voiceHangup`,
method: 'POST',
timeout: '180',
maxLength: '20',
finishOnKey: '*',
recordingStatusCallback: `${serverURL}/voiceMailResponse`,
});
endpoint for /voiceMailResponse
voiceMailURL = res.RecordingUrl;
The voiceMailURL
is the URL with the recording that needs to be delivered to user voice mail inbox at carrier side.