Exten => alarm,1,System(/usr/local/bin/sendalarm.sh|[EMAIL PROTECTED])

Or

Exten => alarm,1,AGI(sendalarm)

/usr/local/bin/sendalarm

#!/bin/sh
Mail -s "Alarm condition on PBX" $1 < /dev/null



> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:asterisk-users-
> [EMAIL PROTECTED] On Behalf Of Al Bochter
> Sent: Sunday, February 25, 2007 9:20 PM
> To: [email protected]
> Subject: [asterisk-users] Sending Email From the dialplan
> 
> I have looked around with no luck.
> 
> Does anyone know of a way to send an email from the dialplan.
> The system that I am working on has none thing to do with VoiceMail.
> 
> This is something like the SMS command but using sending email
> 
> I am working on a prepaid alarm dispatch program for Asterisk if
anyone
> has any input please let me know.
> I will be more than happy to write the code as Open Source for others
to
> use code. With help from the list.
> 
> --
> Best regards,
> 
> Al Bochter
> Bochter Services
> http://www.BochterServices.com/?t=Email
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to