John,<br><br>Thanks for your reply. I will test this script.<br><br>Once again, thank you!<br><br><div class="gmail_quote">On Sat, Apr 2, 2011 at 3:39 PM, John Kiniston <span dir="ltr"><<a href="mailto:john@meatkite.com">john@meatkite.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">You could use a procmail recipe to create a call file and then move it<br>
to the /var/spool/asterisk/outgoing directory.<br>
Below is a untested example .procmailrc:<br>
<br>
:0:<br>
* ^<a href="mailto:To.trigger@example.com">To.trigger@example.com</a><br>
| /usr/local/bin/callout.sh<br>
<br>
where callout.sh would look like this perhaps:<br>
<br>
!/bin/bash<br>
sleep 5<br>
CALL="callout.call";<br>
echo channel: LOCAL/NUMBER@pstn-local > /tmp/$CALL;<br>
echo context: ivr-call-out >> /tmp/$CALL;<br>
echo exten: s >> /tmp/$CALL;<br>
echo priority: 1 >> /tmp/$CALL;<br>
<br>
echo mv /tmp/$CALL /var/spool/asterisk/outgoing<br>
done<br>
<br>
<br>
Again all untested writing by the seat of my pants type stuff.<br>
<br>
2011/4/2 Rafael Bermúdez <<a href="mailto:r.n.bermudez@gmail.com">r.n.bermudez@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hello.<br>
><br>
> I have a server that sends a preformatted email when an event occur. What I<br>
> need is that when Asterisk receives this email automatically dial a<br>
> pre-recorded message. It doesn't have to dial ride away, maybe a scheduled<br>
> cron job will be enough.<br>
><br>
> Is that possible? Any hint? What should I be looking for?<br>
><br>
><br>
> Thanks, and sorry for my lousy English<br>
><br>
> --<br>
> Bermúdez Rafael<br>
><br>
</div></div>> --<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>
<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>
</blockquote></div><br><br clear="all"><br>-- <br>Bermúdez Rafael<br>