它是可以区分是否是地面线路电话或移动电话线? [英] is it possible to differentiate whether it is Land line call or mobile line call?

查看:119
本文介绍了它是可以区分是否是地面线路电话或移动电话线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,如果我得到黑莓/ Android设备一个电话,是不是可以区分是否是地面线路电话或移动电话线路编程?

I would like to know that if i get a call from blackberry / android devices ,is it possible to differentiate whether it is Land line call or mobile line call programmatically?

感谢您的帮助

推荐答案

从理论上讲,没有 - 因为数字移动了一些,可供应到地面线路,然后转移到手机上,甚至没有考虑呼叫者ID欺骗由商业呼叫者使用了很多。

Theoretically, no - because of number mobility a number can be provisioned to a land line and then moved to a cell phone, and without even considering caller-id spoofing that is used a lot by commercial callers.

在一些边缘情况下,你可能会采用一些启发 - 例如在以色列有固定电话和手机以及所有移动运营商之间不存在数量的流动性开始5,因此,如果你得到一个数字,以05开头的电话(本地区域code preFIX)或9725(国际E164 preFIX),那么你知道它的细胞。

In some edge cases you can probably employ some heuristic - for example in Israel there is no number mobility between landlines and cellular and all cellular providers start with 5, so if you get a call from a number that starts with 05 (local area code prefix) or +9725 (international E164 prefix) then you know its a cellular.

更技术性的,你可以得到所有的移动运营商,你有兴趣来支持,这样就可以叫他们的HLR(归属本地注册表)的许可协议,以检查主叫号码被列为蜂窝用户(每个手机供应商上要支持),但我认为这将是非常缓慢的。

More technically, you may be able to get a license agreement with all cellular providers that you are interested to support, so that you can call their HLR (home local registry) to check if the calling number is listed as a cellular subscriber (on each and every cellular provider you want to support), though I assume that will be very slow.

这篇关于它是可以区分是否是地面线路电话或移动电话线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆