Push out stored voicemails to email

I have a voicemail box that has 15 stored voicemails in it because I forgot to configure the email options. I would like to push these voicemails out to the people who are now in the email list, but I haven’t been able to find an option to do so.

Comedian Mail isn’t really designed as much as it was a happening… As such, things like this can be challenging since they weren’t designed into the original system.

One “manpower intensive” way to do it is to forward the voicemail to another extension, delete it, log into the other extension, and send them back. They should go out through the email configuration (I think).

Other than that, I think you’re going to end up messing around with code and attachment the messages (by hand) to an outgoing email.

Yeah, there is no option to do this. You could manually get the files off the server and email them wherever you want. Using a tool like WinSCP or Filezilla this is pretty easy. The files are stored in /var/spool/asterisk/voicemail I think.

Something like:

#!/bin/env php
<?php
include '/etc/freepbx.conf';
$messages = FreePBX::Voicemail()->getMessagesByExtension(1234);

then loop through process message then something like

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.