Asterisk 13 CDR

Hello,
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)
same=>n(send_mail),System(…)

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?