[asterisk-users] send voicemail to multiple emails
Andrew Thomas
andy at datavox.co.uk
Tue Apr 12 03:30:24 CDT 2011
So why not simply go back to square one and create a 'distribution
group' e-mail address - and send to that?
You've probably realised by now that if you want * to do something it
doesn't already do - you have to write that bit yourself.
Good luck.
________________________________
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of vip killa
Sent: 11 April 2011 13:09
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] send voicemail to multiple emails
We are talking about "mailcmd" not "externnotify"
I am aware of extennotify, problem is, it runs script when someone
checks their voicemail, i need a script to run only when a voicemail is
left....
On Mon, Apr 11, 2011 at 6:32 AM, Andrew Thomas <andy at datavox.co.uk>
wrote:
Not quite true. I use a PHP script to do my processing (called from
voicemail.conf [externnotify = /usr/local/bin/vmnotify.php]).
The main three lines are:
$vm_context = $argv[1];
$extension = $argv[2];
$number_of_messages = $argv[3];
Self explanatory really.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of vip killa
Sent: 10 April 2011 05:57
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] send voicemail to multiple emails
I've already taken the steps you described...issue i ran into was there
is no variables passed to "mailcmd" only STDIN... as a result i have to
"extract" variables from STDIN...
On Fri, Apr 8, 2011 at 5:09 PM, Warren Selby <wcselby at selbytech.com>
wrote:
On Fri, Apr 8, 2011 at 1:18 PM, vip killa <vipkilla at gmail.com> wrote:
That does not sound easy... besides these email addresses would be taken
from a MySQL database.
It's actually what you're going to end up doing, whether you do it on
the MTA level or your code it into your script that you execute instead
of sendmail -f. Currently, there is no way to natively have asterisk
send one voicemail to multiple email addresses.
What's probably going to work best for you since you seem to like
program your own scripts (and I'm not talking an AGI here, I'm talking
either pure bash, php, perl, or whichever you prefer), is to change the
mailcmd= option inside voicemail.conf and replace it with a script of
your own design. I'm not sure off the top of my head which variables
are passed to the command, but you could always write a simple script
that just outputs all arguments to see and go from there. My guess is
you're going to at the least get the preconfigured email address and the
contents of your emailsubject and emailbody options (both of which have
the option of passing multiple useful variables).
--
Thanks,
--Warren Selby, dCAP
http://www.selbytech.com
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
If you have received this communication in error we would appreciate
you advising us either by telephone or return of e-mail. The contents
of this message, and any attachments, are the property of DataVox,
and are intended for the confidential use of the named recipient only.
If you are not the intended recipient, employee or agent responsible
for delivery of this message to the intended recipient, take note that
any dissemination, distribution or copying of this communication and
its attachments is strictly prohibited, and may be subject to civil or
criminal action for which you may be liable.
Every effort has been made to ensure that this e-mail or any attachments
are free from viruses. While the company has taken every reasonable
precaution to minimise this risk, neither company, nor the sender can
accept liability for any damage which you sustain as a result of
viruses.
It is recommended that you should carry out your own virus checks
before opening any attachments.
Registered in England. No. 27459085.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110412/7ea15143/attachment.html>
More information about the asterisk-users
mailing list