Email notification problem

Hello, i have an “asterisk 1.8” on freebsd server without web-interface. Our customer want to optimize email notifications, need to disable notifications when a caller hung up while in the queue.

dialplan:

`

// Secretary
600 => {
//Dial(SIP/100,120,Tt);
//if("${CHANNEL(language)}" = “ru”) Playback(ivr/feedback);
NoCDR;
ResetCDR(wv);
Queue(reception,tT,185);

h => {
if ("${CDR(disposition)}" = “NOANSWER”) {
if ("${CDR(dst)}" = “600”) {
ifTime (10:00-19:00|mon-fri||) {
System(/usr/local/sbin/asterisk-mail.sh "mail1@mail.com" “${CDR(src)}” “reception” “${CDR(start)}” “${CDR(disposition)$
// System(/usr/local/sbin/asterisk-mail.sh "mail2@mail.com” “${CDR(src)}” “reception” “${CDR(start)}” "${CDR(disp$
};

`
How to modify this correctly?