Asterisk 13 CDR

I need to send an email if inbound call isn’t answered.
Incoming call goes to Queue, than in “h” i do this (in 1.8 asterisk this was working fine):
exten=>h,n,GotoIf($["${CDR(disposition)}" != “ANSWERED”]?send_mail)

Now in asterisk 13 i have several records in cdr for one call and ${CDR(disposition)} returns only last CDR records disposition. Any suggestions how to get this done?