Hacker News new | past | comments | ask | show | jobs | submit login

> Cophones are VMs with virtual stacks

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?




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:

  /usr/local/bin/curl -s -X GET "https://lookups.twilio.com/v1/PhoneNumbers/$number?Type=carrier&Type=caller-name" -u $accountsid:$authtoken | /usr/local/bin/jq '.'


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



This explains how a customer of Twilio can request the info from Twilio.

I asked how Twilio obtains the information.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: