I have a setup where I have multiple offices that are sharing their extension space via a DUNDI cloud (part of the dialplan for an unknown local extension is to query the other servers to see if they own it, and sending the call to the appropriate server if so). However, we've had a couple instances recently where an admin forgot to check if an extension was in use on another server before creating it, and we wound up with the same extension in two different places. I figured it might be cool to hook into the extension creation process and do a lookup and reject the new extension as a duplicate if it already exists, but the closest hook available is after the extension is already created (presumably to allow you to do additional custom setup).
So it'd be really useful to me if there was a "before created" hook that would accept or deny the creation of the extension based on the result returned by the hook code.
I suppose for now I can hook the "After Created" hook and manually delete the freshly-created extension and throw an error as part of my hook if it's a duplicate... :)