For the future, there is a Monitor Trunk Failures section on the GUI. It states:
If checked, supply the name of a custom AGI Script that will be called to report, log, email or otherwise take some action on trunk failures that are not caused by either NOANSWER or CANCEL.
@cynjut recently linked this to help someone else.