国际电话号码最大和最小?
国际电话号码的最大和最小数字是多少? (国家代码+区号+电话号码)
What is the max and min digits for an international telephone number?
(country code + area code + phone number)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
来源:http://en.wikipedia.org/wiki/Telephone_number
另外,请检查以下其他问题:
全球最长的电话是多少我应该在电话的 SQL varchar(length) 中考虑的数字
Source: http://en.wikipedia.org/wiki/Telephone_number
Also, check this other question on SO:
What's the longest possible worldwide phone number I should consider in SQL varchar(length) for phone
电话号码由 ITU-T 在其建议 E.164 中标准化。他们在建议中表示,电话号码不应超过 15 位数字。
因此,这取决于电话运营商和当地标准。
大多数运营商不允许您向长度超过 16 位数字的号码发送 SMS 消息。因此,16 位数字的限制是安全的。
编辑关于电话号码的误解的一个很好的总结可以在阅读https://github.com/googlei18n/libphonenumber/blob/master/FALSEHOODS.md
Telephone numbers are standardised by ITU-T in their recommendation E.164. In the recommendation they say telephone numbers should not exceed 15 digits.
So it's up to the telephone operators and local standards.
Most operators don't allow you to send SMS messages to numbers which are more than 16 digits long. So you'll be safe with 16 digit limit.
Edit A nice summary of misconceptions about phonenumbers can be read at https://github.com/googlei18n/libphonenumber/blob/master/FALSEHOODS.md
这个问题的答案可以(并且确实)以一种完全不稳定的方式改变,无法为您提供明确的答案。运营商或国家可以随时更改其编号计划(添加区号或添加数字等)。
我经常用作国际电话号码参考的网站是 http://www.numberingplans.com/
我相信如果您想在自己的系统中验证个人号码,他们也会出售他们的数据库。
The answer to that question can (and does) change in a fashion which is entirely too fluid to be able to provide you with a definitive answer. Carriers or countries can change their numbering plans (adding area codes or adding digits or the like) at any time.
A website which I often use as a reference for International Phone Numbers is http://www.numberingplans.com/
I believe they also sell their databases, if you are wanting to validate individual numbers within your own system..
最多 15 位,请参阅此链接
https://en.wikipedia.org/wiki/E.164
15 digits is maximum, refer this link
https://en.wikipedia.org/wiki/E.164
尽管标准规定最多 15 位数字,但使用直接拨入拨号 (DID) 和专用交换机 (PBX) 技术通常用于呼叫特定人员或组织内的部门,可以使电话号码长度超过 15 位(注意末尾的“-1234”后缀):
0049 (30) 123456789-1234
在我们的系统中,我们使用 20 位数字的限制。
Although the standard is talking about 15 digits maximum, a call number extension using Direct Inward Dial (DID) and Private Branch Exchange (PBX) technologies is oftenly used in order to call a specific person or department inside an organisation, which can make a phone number longer than 15 digits (note "-1234" suffix at the end):
0049 (30) 123456789-1234
In our systems we use the limit of 20 digits.
实际上,该问题要求提供“国际”电话号码,但提到了一些国家没有的区号。在撰写本文时,发现 E.164 中的国家/地区部分不超过 12 位数字。然后他们添加了国家代码和至少一个“+”作为前缀。
然而,更长的用户号码是可能的,而且我们知道它们确实在世界某些地区被分配。其技术限制可以在 3GPP 标准(如 GSM)和 ISDN 标准(如 DSS1)中找到,这些标准有 10 个 bcd 编码字节用于用户号码 - 加上一个字节用于前缀,最多可以有 4 位数字拨打了。有效订户号码的总长度不得超过 24 位。
Actually, the question asks for an "international" phone number but mentions an area code which some nations don't have. In E.164 the national part was found be no more than 12 digits at the time of writing. Then they added a country code and atleast a "+" for the prefix.
Longer subscriber numbers may be possible however and we know that they do get assigned in some regions of the world. The technical limitation for that can be found in the 3GPP standards (like GSM) and ISDN standards (like DSS1) which have 10 bcd-encoded bytes for the subscriber number - plus a byte for the prefix which can be up to 4 digits to be dialled. That adds up to a limit of 24 digits for a viable subscriber number.