[asterisk-users] Is it possible to dial an automated message when Asterisk receives an email?

Rafael Bermúdez r.n.bermudez at gmail.com
Sat Apr 2 13:47:27 CDT 2011


John,

Thanks for your reply. I will test this script.

Once again, thank you!

On Sat, Apr 2, 2011 at 3:39 PM, John Kiniston <john at meatkite.com> wrote:

> You could use a procmail recipe to create a call file and then move it
> to the /var/spool/asterisk/outgoing directory.
> Below is a untested example .procmailrc:
>
> :0:
> * ^To.trigger at example.com
> | /usr/local/bin/callout.sh
>
> where callout.sh would look like this perhaps:
>
> !/bin/bash
> sleep 5
> CALL="callout.call";
> echo channel: LOCAL/NUMBER at pstn-local > /tmp/$CALL;
> echo context: ivr-call-out >> /tmp/$CALL;
> echo exten: s >> /tmp/$CALL;
> echo priority: 1 >> /tmp/$CALL;
>
> echo mv /tmp/$CALL /var/spool/asterisk/outgoing
> done
>
>
> Again all untested writing by the seat of my pants type stuff.
>
> 2011/4/2 Rafael Bermúdez <r.n.bermudez at gmail.com>:
> > Hello.
> >
> > I have a server that sends a preformatted email when an event occur. What
> I
> > need is that when Asterisk receives this email automatically dial a
> > pre-recorded message. It doesn't have to dial ride away, maybe a
> scheduled
> > cron job will be enough.
> >
> > Is that possible? Any hint? What should I be looking for?
> >
> >
> > Thanks, and sorry for my lousy English
> >
> > --
> > Bermúdez Rafael
> >
> > --
> > _____________________________________________________________________
> > -- 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
> >
>
> --
> _____________________________________________________________________
> -- 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
>



-- 
Bermúdez Rafael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110402/b04ca251/attachment.htm>


More information about the asterisk-users mailing list