I think the best approach without having to program this yourself, is to configure an options ping in your sip trunk and monitor via SNMP with any SNMP server and then configure it to shoot an email whenever the trunk goes down.
To add an option to what Andre correctly suggested, you can configure event manager feature within your Cube so it can send you an email whenever a sip trunk goes down.
Please rate all helpful posts
"The more you help the more you learn"
Getting Started
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: