+1 for the idea. Thanks Scott, I think here is the google phone number library https://github.com/googlei18n/libphonenumber Demo: http://libphonenumber.appspot.com/
Thanks & Regards -- Deepak Dixit www.hotwaxsystems.com On Sat, Apr 15, 2017 at 5:28 AM, Scott Gray <scott.g...@hotwaxsystems.com> wrote: > I think Google has a phone number library that could be put to use to take > the heavy lifting off our shoulders. > > Regards > Scott > > On 15/04/2017 00:53, "Pierre Smits" <pierre.sm...@gmail.com> wrote: > > > For (to be) OFBiz definitions, I suggest to review ITU and country > policies > > regarding the various kinds of telephone definitions and numbering > schemas. > > > > Best regards, > > > > Pierre Smits > > > > ORRTIZ.COM <http://www.orrtiz.com> > > OFBiz based solutions & services > > > > OFBiz Extensions Marketplace > > http://oem.ofbizci.net/oci-2/ > > > > On Fri, Apr 14, 2017 at 2:41 PM, Jacques Le Roux < > > jacques.le.r...@les7arts.com> wrote: > > > > > +1, for consistency we should follow the way CountryAddressFormat works > > > > > > Jacques > > > > > > > > > > > > Le 14/04/2017 à 14:24, Taher Alkhateeb a écrit : > > > > > >> +1 very cool idea. We might need a Type entity or just place it in > > >> enumeration or something like that. > > >> > > >> On Apr 14, 2017 2:22 PM, "Suraj Khurana" <suraj.khurana@hotwaxsystems. > > com > > >> > > > >> wrote: > > >> > > >> Hi devs, > > >> > > >> I was wondering for some sort of data mechanism that could validate > if a > > >> phone belongs to a particular country/geo. > > >> Digging deeper, found that we have already some entities which can > > handle > > >> these scenarios like *CountryTeleCode.* > > >> > > >> There should be some sort of mechanism to validate the country > telephone > > >> number formats > > >> In real time scenarios, there are many mechanisms by which you can get > > >> telephone number info such as a CSV or any XML data file etc. > > >> > > >> We already have *CountryAddressFormat* to check address format which > has > > >> *postalCodeRegex* field. > > >> > > >> *Proposal*: > > >> There can be an entity which can have a similar mechanism (regex > > pattern, > > >> telephone number length etc.) for validating telephone numbers as > well. > > >> > > >> If it looks good, I will create a Jira ticket and start working on it. > > >> > > >> -- > > >> Thanks and Regards, > > >> Suraj Khurana > > >> Sr. Enterprise Software Engineer > > >> HotWax Systems <http://www.hotwaxsystems.com/> - *The global leader > in > > >> innovative enterprise commerce solutions **powered by Apache OFBiz.* > > >> <https://about.me/surajkhurana?promo=email_sig> > > >> > > >> > > > > > >