Formatting phone numbers?

From what I can tell, Phone fields will accept phone numbers of any format (7-digit, 10-digit,11-digit, E.164, etc.)

Is it possible to force ERPNext to reformat phone numbers so that they all have the same format?

I’m trying to intergrate with my VOIP server and the numbers need to all be of the E.164 format.

If you dont want to edit the core code to avoid issues with updates in the future I recommend you create a custom Hook for when a file is saved/submitted and have a custom function to do this. I too had to integrate with my SBCs and PBXs and did it this way. Also with a custom function you can add more checks to verify or clean the number, so if a user adds 07456712834 the function converts to +44745…