I'm not confused about this...<br>Everytime a voicemail is left, I need asterisk to run a script that will query a database, and according to those results perform various actions. These actions include calling a number and connecting it directly to voicemailmain and/or sending out multiple emails... I'm able to accomplish this using mailcmd, reading the STDIN, parsing out what i need such as the mailbox but I'm not sure how stable this method is.... I'd rather use externnotify because it is designed to a run script ....<br>
<br><div class="gmail_quote">On Mon, Apr 11, 2011 at 1:34 PM, Sherwood McGowan <span dir="ltr"><<a href="mailto:sherwood.mcgowan@gmail.com">sherwood.mcgowan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On 4/11/2011 12:30 PM, vip killa wrote:<br>
> Would be so much simpler if "mailcmd" acted just like "externnotify"<br>
> or "externnotify" only ran when a message was left but not when<br>
> someone checks their voicemail...<br>
><br>
><br>
> That's pretty much where you're at. What gets passed to STDIN is an<br>
> email, it's not set up for use by a script. Remember, what you're<br>
> doing<br>
> is asking Asterisk to do something out of the ordinary, hence why<br>
> having<br>
> an email alias is typically the best solution.<br>
><br>
><br>
</div></div><div class="im">> --<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><br>
<br>
</div>I think you're confused about how it works. When someone leaves a<br>
voicemail, Asterisk sends a notification email, by piping an email to<br>
the defined mailcmd (by default, again, 'sendmail -t')...which is<br>
exactly what you're "wishing" it did....maybe you need to do some more<br>
reading?<br>
<br>
Why do you think it works in a different way?<br>
<div><div></div><div class="h5"><br>
--<br>
Sherwood McGowan <<a href="mailto:sherwood.mcgowan@gmail.com">sherwood.mcgowan@gmail.com</a>><br>
Carrier, ITSP, Call Center, and PBX Solutions Consultant<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><br>
</div></div></blockquote></div><br>