.call file - status expired

Is there any way to find when a .call file sets the status to “expired”? I have an AGI script I’d like to execute on call status expired, however because that is Asterisk doing that, it doesn’t seem to follow the dial plan/pattern. I can grep with a cron job on the outgoing_done directory every minute, but I’d rather asterisk handle the error(s) versus writing around it.

The only notification mechanism I know of is the “failed” extension which is executed when the origination fails. I don’t know if this applies to the expired case. If it doesn’t then there’s not a built in way.