Enforcing the uniqueness of fields/entities (e.g. phone numbers)
I think hook_civicrm_check with the following SQL would handle notifications of duplicates:
SELECT phone FROM civicrm_phone GROUP BY phone_numeric HAVING count(*) &gt; 1;

For back-end forms, you could modify the Supervised dedupe rules, though this wouldn't catch non-unique numbers belonging to different contact types.