I use the following:
Exten => s,n(status-NOTIFY),System(echo "'${DIALSTATUS} on
${CALLERID(num)}' at ${STRFTIME(${EPOCH},,%H%M%S)}" | mail -s "Call
Unsuccessful on DNIS ""'${ARG10}'" neeraj.ch...@ocis.com.au)
--
_
-- Bandwidth
I have this:
exten => s,n,System(/root/sendemail.sh shma...@gmail.com
"${STRFTIME(,,%c)}" "${CALLERID(name)} ${CALLERID(num)}" ${EPOCH})
/root/sendemail.sh:
#!/bin/sh
#$1 email address
#$2 time
#$3 CallerID
#$4 EPOCH
TMPFILE=/root/tmpemails/$4
echo "TO: "$1 >> $TMPFILE
echo "Subject: New call" >
thanks.
Ill give that a go.
Steve Edwards wrote:
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 s
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
Hi,
I'm sure this topic has been discussed before but i'm having trouble finding a
simple answer.
Whats the easiest way of sending an email from Asterisk?
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 vo