Closed nbarr closed 7 years ago
Already done. Twilio has only one requirement from entire E.164 spec -
Without spaces between. It is already done. In database phone numbers stored in format:
Plus sign added right before sending fax to Twilio. All non-numeric characters from fax numer are stripped before putting to database.
Parse and transform user inputted numbers to E.164 for database storage and Twilio submittal.
Library of choice, but appears this one does the job https://pypi.python.org/pypi/phonenumbers