[asterisk-users] Email from Dialplan

Steve Edwards asterisk.org at sedwards.com
Wed Oct 20 18:07:35 CDT 2010


On Wed, 20 Oct 2010, Dan Journo wrote:

> I want to set up a warning so that after a Dial cmd, if the DIALSTATUS is CHANUNAVAIL, Asterisk sends an email to the
> admin to check the voip phone is connected properly.
> 
> I've got the dial plan set up, I just dont know what command to use to send the email.

Off the top of my head...

exten = *,n,system(echo Call to ${DNIS} failed | mail -s 'Call failed' root at localhost)

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list