No, this is easy.
Twilio API has a simple lookup function (call over curl) to see provider and type of number. Also shows subscribers name (usually).
I have this in a shell script and look up numbers all the time.
Re:Cophone – Your Virtual Smartphone
by rahimnathwani on Friday July 28, 2023 @07:44PM
(#36914928)
If the owner of the number is a customer of a different telco (not Twilio), by what mechanism can Twilio determine whether the it's a physical (sim/esim/landline) or virtual number?
Sure, some operators operate only physical or only virtual, but others (like Google) operate both.
This isn’t something casually identified with flashy software solutions or APIs, it’s more of a relationships with carriers and other companies in the telco space sorta thing. It gets even more fun when you start looking in to MO and MT on the SMPP side of things.
by the way, if you only need a validation of a number, no need for Twilio: this is a great lib https://github.com/giggsey/libphonenumber-for-php
Re:Cophone – Your Virtual Smartphone
by rahimnathwani on Sunday July 30, 2023 @08:49PM
(#36937700)
This explains how a customer of Twilio can request the info from Twilio.
I asked how Twilio obtains the information.
How can this be determined? I'd imagine that only those with direct access to the "which number belongs to which provider" database could see that a given number belongs to $comapniesKnownToOfferTraditionalPhysicalService versus $comapnyKnownToOnlyDoVOIP can know this for sure? It it just that some companies with this access are selling a "we'll look that up for you" service? Or is it simpler and i'm just over thinking it?