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.
Twilio does not provide a way to deliver voicemails straight to a voicemail inbox. However, this may also not be the best user experience, as the patient may actually want to pick up the call if they can.
Here are some alternative solutions that you could build: