Validating telecom numbers

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Validating telecom numbers

Suraj Khurana
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>
Reply | Threaded
Open this post in threaded view
|

Re: Validating telecom numbers

taher
+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" <[hidden email]>
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>
Reply | Threaded
Open this post in threaded view
|

Re: Validating telecom numbers

Jacques Le Roux
Administrator
+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" <[hidden email]>
> 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>
>

Reply | Threaded
Open this post in threaded view
|

Re: Validating telecom numbers

Pierre Smits
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 <
[hidden email]> 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" <[hidden email]
>> >
>> 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>
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Validating telecom numbers

Scott Gray-3
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" <[hidden email]> 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 <
> [hidden email]> 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>
> >>
> >>
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Validating telecom numbers

Deepak Dixit-3
+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 <[hidden email]>
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" <[hidden email]> 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 <
> > [hidden email]> 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>
> > >>
> > >>
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Validating telecom numbers

Pierre Smits
Thanks, Deepak.

And fortunately that has a good license too.

Best regards,

Pierre Smits

ORRTIZ.COM <http://www.orrtiz.com>
OFBiz based solutions & services

OFBiz Extensions Marketplace
http://oem.ofbizci.net/oci-2/

On Sat, Apr 15, 2017 at 9:39 AM, Deepak Dixit <
[hidden email]> wrote:

> +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 <[hidden email]>
> 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" <[hidden email]> 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 <
> > > [hidden email]> 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>
> > > >>
> > > >>
> > > >
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Validating telecom numbers

Jacques Le Roux
Administrator
In reply to this post by Deepak Dixit-3
Sounds great, apart that in demo I was surprised to have to pass FR instead of 33 for France "CLDR two-letter region code" seems a new (and better) std

https://www.google.fr/search?q=CLDR+two-letter+region+code)&ie=UTF-8

Jacques


Le 15/04/2017 à 09:39, Deepak Dixit a écrit :

> +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 <[hidden email]>
> 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" <[hidden email]> 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 <
>>> [hidden email]> 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>
>>>>>
>>>>>

Reply | Threaded
Open this post in threaded view
|

Re: Validating telecom numbers

Pierre Smits
I suggest to open a 'New Feature' (or otherwise an Improvement) issue in
JIRA.

Best regards,

Pierre Smits

ORRTIZ.COM <http://www.orrtiz.com>
OFBiz based solutions & services

OFBiz Extensions Marketplace
http://oem.ofbizci.net/oci-2/

On Sat, Apr 15, 2017 at 11:00 AM, Jacques Le Roux <
[hidden email]> wrote:

> Sounds great, apart that in demo I was surprised to have to pass FR
> instead of 33 for France "CLDR two-letter region code" seems a new (and
> better) std
>
> https://www.google.fr/search?q=CLDR+two-letter+region+code)&ie=UTF-8
>
> Jacques
>
>
>
> Le 15/04/2017 à 09:39, Deepak Dixit a écrit :
>
>> +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 <[hidden email]
>> >
>> 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" <[hidden email]> 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 <
>>>> [hidden email]> 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>
>>>>>>
>>>>>>
>>>>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Validating telecom numbers

Suraj Khurana
Thanks everyone for your suggestions and discussion.

I have created a Jira ticket here
<https://issues.apache.org/jira/browse/OFBIZ-9358>.

--
Best 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>


On Sat, Apr 15, 2017 at 2:56 PM, Pierre Smits <[hidden email]>
wrote:

> I suggest to open a 'New Feature' (or otherwise an Improvement) issue in
> JIRA.
>
> Best regards,
>
> Pierre Smits
>
> ORRTIZ.COM <http://www.orrtiz.com>
> OFBiz based solutions & services
>
> OFBiz Extensions Marketplace
> http://oem.ofbizci.net/oci-2/
>
> On Sat, Apr 15, 2017 at 11:00 AM, Jacques Le Roux <
> [hidden email]> wrote:
>
> > Sounds great, apart that in demo I was surprised to have to pass FR
> > instead of 33 for France "CLDR two-letter region code" seems a new (and
> > better) std
> >
> > https://www.google.fr/search?q=CLDR+two-letter+region+code)&ie=UTF-8
> >
> > Jacques
> >
> >
> >
> > Le 15/04/2017 à 09:39, Deepak Dixit a écrit :
> >
> >> +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 <
> [hidden email]
> >> >
> >> 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" <[hidden email]> 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 <
> >>>> [hidden email]> 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>
> >>>>>>
> >>>>>>
> >>>>>>
> >
>