<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-GB link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>So why not simply go back to square one
and create a ‘distribution group’ e-mail address – and send
to that?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Good luck.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>vip killa<br>
<b><span style='font-weight:bold'>Sent:</span></b> 11 April 2011 13:09<br>
<b><span style='font-weight:bold'>To:</span></b> Asterisk Users Mailing List -
Non-Commercial Discussion<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [asterisk-users] send
voicemail to multiple emails</span></font><span lang=EN-US><o:p></o:p></span></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>We are talking about "mailcmd" not
"externnotify" <o:p></o:p></span></font></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>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....<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Mon, Apr 11, 2011 at 6:32 AM, Andrew Thomas <<a
href="mailto:andy@datavox.co.uk">andy@datavox.co.uk</a>> wrote:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Not quite true. I use a PHP script to do my processing (called
from<br>
voicemail.conf [externnotify = /usr/local/bin/vmnotify.php]).<br>
<br>
The main three lines are:<br>
<br>
$vm_context = $argv[1];<br>
$extension = $argv[2];<br>
$number_of_messages = $argv[3];<br>
<br>
Self explanatory really.<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>]
On Behalf Of vip killa<br>
Sent: 10 April 2011 05:57<br>
To: Asterisk Users Mailing List - Non-Commercial Discussion<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Subject: Re: [asterisk-users]
send voicemail to multiple emails<br>
<br>
<o:p></o:p></span></font></p>
</div>
<div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I've already taken the steps you described...issue i ran into was there<br>
is no variables passed to "mailcmd" only STDIN... as a result i have
to<br>
"extract" variables from STDIN...<br>
<br>
<br>
On Fri, Apr 8, 2011 at 5:09 PM, Warren Selby <<a
href="mailto:wcselby@selbytech.com">wcselby@selbytech.com</a>><br>
wrote:<br>
<br>
On Fri, Apr 8, 2011 at 1:18 PM, vip killa <<a
href="mailto:vipkilla@gmail.com">vipkilla@gmail.com</a>> wrote:<br>
<br>
That does not sound easy... besides these email addresses would be taken<br>
from a MySQL database.<br>
<br>
<br>
<br>
<br>
It's actually what you're going to end up doing, whether you do it on<br>
the MTA level or your code it into your script that you execute instead<br>
of sendmail -f. Currently, there is no way to natively have asterisk<br>
send one voicemail to multiple email addresses.<br>
<br>
What's probably going to work best for you since you seem to like<br>
program your own scripts (and I'm not talking an AGI here, I'm talking<br>
either pure bash, php, perl, or whichever you prefer), is to change the<br>
mailcmd= option inside voicemail.conf and replace it with a script of<br>
your own design. I'm not sure off the top of my head which variables<br>
are passed to the command, but you could always write a simple script<br>
that just outputs all arguments to see and go from there. My guess is<br>
you're going to at the least get the preconfigured email address and the<br>
contents of your emailsubject and emailbody options (both of which have<br>
the option of passing multiple useful variables).<br>
<br>
<br>
--<br>
Thanks,<br>
--Warren Selby, dCAP<br>
<a href="http://www.selbytech.com" target="_blank">http://www.selbytech.com</a><br>
<br>
--<br>
_____________________________________________________________________<o:p></o:p></span></font></p>
</div>
</div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>-- Bandwidth and
Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a>
--<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a
href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
<o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> If you have received this communication in error we would
appreciate<br>
you advising us either by telephone or return of e-mail. The contents<br>
of this message, and any attachments, are the property of DataVox,<br>
and are intended for the confidential use of the named recipient only.<br>
If you are not the intended recipient, employee or agent responsible<br>
for delivery of this message to the intended recipient, take note that<br>
any dissemination, distribution or copying of this communication and<br>
its attachments is strictly prohibited, and may be subject to civil or<br>
criminal action for which you may be liable.<br>
Every effort has been made to ensure that this e-mail or any attachments<br>
are free from viruses. While the company has taken every reasonable<br>
precaution to minimise this risk, neither company, nor the sender can<br>
accept liability for any damage which you sustain as a result of viruses.<br>
It is recommended that you should carry out your own virus checks<br>
before opening any attachments.<br>
<br>
Registered in <st1:country-region w:st="on"><st1:place w:st="on">England</st1:place></st1:country-region>.
No. 27459085.<o:p></o:p></span></font></p>
<div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com"
target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a
href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><o:p></o:p></span></font></p>
</div>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</div>
</body>
<!--[object_id=#datavox.co.uk#]--><P><BR> If you have received this communication in error we would appreciate<BR>you advising us either by telephone or return of e-mail. The contents<BR>of this message, and any attachments, are the property of DataVox,<BR>and are intended for the confidential use of the named recipient only.<BR>If you are not the intended recipient, employee or agent responsible<BR>for delivery of this message to the intended recipient, take note that<BR>any dissemination, distribution or copying of this communication and<BR>its attachments is strictly prohibited, and may be subject to civil or<BR>criminal action for which you may be liable.<BR>Every effort has been made to ensure that this e-mail or any attachments<BR>are free from viruses. While the company has taken every reasonable<BR>precaution to minimise this risk, neither company, nor the sender can<BR>accept liability for any damage which you sustain as a result of viruses.<BR>It is recommended that you should carry out your own virus checks<BR>before opening any attachments. </P>
<P>Registered in England. No. 27459085.<BR><BR></P></html>