Ip trunk registration timeout - get notified by mail

hi,
sometimes my pbx fails to register on ip trunk: is there a way to receive a mail if the registration trunk goes on timeout?