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.chand at ocis.com.au)