How to determine if a call is local or STD OR ISD

I am developing an application that requires tracking outgoing calls made by a user, which I can track using Broadcast Receiver. I also want to discover that this call is local, or STD, or ISD, but I cannot detect this.

+5
source share
1 answer

Suppose, you know, to which state (Telecom Circles) an outgoing call is sent. Then you just need to check if your local state (Telecommunication circles) corresponds to the "outgoing call" ("Telecommunication circles") state or not. If this is the same, then calls the local else STD call.


Now the problem boils down to how to find the status (Telecom Circles) of outgoing calls.

This can be easily done for Landline phones, where we specifically set STD codes. See Link for status and there are STD codes.
Interestingly, mobile phones also follow something very similar. The first 4 digits of the mobile number indicate this. For example, suppose the number is 9999xxxxxx, then this number from Delhi is Vodafone. See the
wikipedia link for full mobile phones from the first four-digit details.

0
source

All Articles