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











up vote
5
down vote

favorite
1












I am developing an application which requires to keep track of the outgoing calls made by user, which I am able to track by Using Broadcast Receiver. I also want to detect that is that call is Local or STD or ISD, but I am not able to detect that.










share|improve this question
























  • Looks very interesting, have you been able to figure out the home network of the user for a start? from there u can determine if the call is going out of state or out of country..
    – Royston Pinto
    Feb 27 '13 at 11:29










  • Hi Pinto Could you please explain what exactly "from there u can determine if the call is going out of state or out of country.. " means? As for me "Home network" means getting his current location but how can i proceed with that?
    – Muni Mishra
    Feb 27 '13 at 13:33






  • 1




    Home network can help you get the local code that represents it e.g. Mumbai is 022. After that based on number dialed, you can determine ISD. STD might be tricky as mobile phones don't use codes. Landlines might be fine.
    – Royston Pinto
    Feb 28 '13 at 4:15















up vote
5
down vote

favorite
1












I am developing an application which requires to keep track of the outgoing calls made by user, which I am able to track by Using Broadcast Receiver. I also want to detect that is that call is Local or STD or ISD, but I am not able to detect that.










share|improve this question
























  • Looks very interesting, have you been able to figure out the home network of the user for a start? from there u can determine if the call is going out of state or out of country..
    – Royston Pinto
    Feb 27 '13 at 11:29










  • Hi Pinto Could you please explain what exactly "from there u can determine if the call is going out of state or out of country.. " means? As for me "Home network" means getting his current location but how can i proceed with that?
    – Muni Mishra
    Feb 27 '13 at 13:33






  • 1




    Home network can help you get the local code that represents it e.g. Mumbai is 022. After that based on number dialed, you can determine ISD. STD might be tricky as mobile phones don't use codes. Landlines might be fine.
    – Royston Pinto
    Feb 28 '13 at 4:15













up vote
5
down vote

favorite
1









up vote
5
down vote

favorite
1






1





I am developing an application which requires to keep track of the outgoing calls made by user, which I am able to track by Using Broadcast Receiver. I also want to detect that is that call is Local or STD or ISD, but I am not able to detect that.










share|improve this question















I am developing an application which requires to keep track of the outgoing calls made by user, which I am able to track by Using Broadcast Receiver. I also want to detect that is that call is Local or STD or ISD, but I am not able to detect that.







android android-intent telephonymanager






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 19 at 9:04









Matthias

2,12852656




2,12852656










asked Feb 27 '13 at 10:08









Muni Mishra

3291415




3291415












  • Looks very interesting, have you been able to figure out the home network of the user for a start? from there u can determine if the call is going out of state or out of country..
    – Royston Pinto
    Feb 27 '13 at 11:29










  • Hi Pinto Could you please explain what exactly "from there u can determine if the call is going out of state or out of country.. " means? As for me "Home network" means getting his current location but how can i proceed with that?
    – Muni Mishra
    Feb 27 '13 at 13:33






  • 1




    Home network can help you get the local code that represents it e.g. Mumbai is 022. After that based on number dialed, you can determine ISD. STD might be tricky as mobile phones don't use codes. Landlines might be fine.
    – Royston Pinto
    Feb 28 '13 at 4:15


















  • Looks very interesting, have you been able to figure out the home network of the user for a start? from there u can determine if the call is going out of state or out of country..
    – Royston Pinto
    Feb 27 '13 at 11:29










  • Hi Pinto Could you please explain what exactly "from there u can determine if the call is going out of state or out of country.. " means? As for me "Home network" means getting his current location but how can i proceed with that?
    – Muni Mishra
    Feb 27 '13 at 13:33






  • 1




    Home network can help you get the local code that represents it e.g. Mumbai is 022. After that based on number dialed, you can determine ISD. STD might be tricky as mobile phones don't use codes. Landlines might be fine.
    – Royston Pinto
    Feb 28 '13 at 4:15
















Looks very interesting, have you been able to figure out the home network of the user for a start? from there u can determine if the call is going out of state or out of country..
– Royston Pinto
Feb 27 '13 at 11:29




Looks very interesting, have you been able to figure out the home network of the user for a start? from there u can determine if the call is going out of state or out of country..
– Royston Pinto
Feb 27 '13 at 11:29












Hi Pinto Could you please explain what exactly "from there u can determine if the call is going out of state or out of country.. " means? As for me "Home network" means getting his current location but how can i proceed with that?
– Muni Mishra
Feb 27 '13 at 13:33




Hi Pinto Could you please explain what exactly "from there u can determine if the call is going out of state or out of country.. " means? As for me "Home network" means getting his current location but how can i proceed with that?
– Muni Mishra
Feb 27 '13 at 13:33




1




1




Home network can help you get the local code that represents it e.g. Mumbai is 022. After that based on number dialed, you can determine ISD. STD might be tricky as mobile phones don't use codes. Landlines might be fine.
– Royston Pinto
Feb 28 '13 at 4:15




Home network can help you get the local code that represents it e.g. Mumbai is 022. After that based on number dialed, you can determine ISD. STD might be tricky as mobile phones don't use codes. Landlines might be fine.
– Royston Pinto
Feb 28 '13 at 4:15












1 Answer
1






active

oldest

votes

















up vote
0
down vote













Suppose, you know to which State(Telecom Circles) the outgoing call is going. Then you just need to check if your Local-State(Telecom Circles) is same as Outgoing-call-State(Telecom Circles) or not. If it is same, then local call else STD calls.





Now, the problem boils down to, how to find the State(Telecom Circles) of an outgoing-calls.



This can be easily done for Landline phones where we specifically put STD codes. See the link for state and there STD codes.

Interestingly, mobile phones also follow something very similar. First 4 digits of a mobile number tells that. For e.g suppose the number is 9999xxxxxx, then this number is from Delhi - Vodafone. See the wikipedia link for complete mobile phones first 4 digit details.






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f15109329%2fhow-to-determine-a-call-made-is-local-or-std-or-isd%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Suppose, you know to which State(Telecom Circles) the outgoing call is going. Then you just need to check if your Local-State(Telecom Circles) is same as Outgoing-call-State(Telecom Circles) or not. If it is same, then local call else STD calls.





    Now, the problem boils down to, how to find the State(Telecom Circles) of an outgoing-calls.



    This can be easily done for Landline phones where we specifically put STD codes. See the link for state and there STD codes.

    Interestingly, mobile phones also follow something very similar. First 4 digits of a mobile number tells that. For e.g suppose the number is 9999xxxxxx, then this number is from Delhi - Vodafone. See the wikipedia link for complete mobile phones first 4 digit details.






    share|improve this answer

























      up vote
      0
      down vote













      Suppose, you know to which State(Telecom Circles) the outgoing call is going. Then you just need to check if your Local-State(Telecom Circles) is same as Outgoing-call-State(Telecom Circles) or not. If it is same, then local call else STD calls.





      Now, the problem boils down to, how to find the State(Telecom Circles) of an outgoing-calls.



      This can be easily done for Landline phones where we specifically put STD codes. See the link for state and there STD codes.

      Interestingly, mobile phones also follow something very similar. First 4 digits of a mobile number tells that. For e.g suppose the number is 9999xxxxxx, then this number is from Delhi - Vodafone. See the wikipedia link for complete mobile phones first 4 digit details.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Suppose, you know to which State(Telecom Circles) the outgoing call is going. Then you just need to check if your Local-State(Telecom Circles) is same as Outgoing-call-State(Telecom Circles) or not. If it is same, then local call else STD calls.





        Now, the problem boils down to, how to find the State(Telecom Circles) of an outgoing-calls.



        This can be easily done for Landline phones where we specifically put STD codes. See the link for state and there STD codes.

        Interestingly, mobile phones also follow something very similar. First 4 digits of a mobile number tells that. For e.g suppose the number is 9999xxxxxx, then this number is from Delhi - Vodafone. See the wikipedia link for complete mobile phones first 4 digit details.






        share|improve this answer












        Suppose, you know to which State(Telecom Circles) the outgoing call is going. Then you just need to check if your Local-State(Telecom Circles) is same as Outgoing-call-State(Telecom Circles) or not. If it is same, then local call else STD calls.





        Now, the problem boils down to, how to find the State(Telecom Circles) of an outgoing-calls.



        This can be easily done for Landline phones where we specifically put STD codes. See the link for state and there STD codes.

        Interestingly, mobile phones also follow something very similar. First 4 digits of a mobile number tells that. For e.g suppose the number is 9999xxxxxx, then this number is from Delhi - Vodafone. See the wikipedia link for complete mobile phones first 4 digit details.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 2 '16 at 18:49









        Vedsar Kushwaha

        4310




        4310






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f15109329%2fhow-to-determine-a-call-made-is-local-or-std-or-isd%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Costa Masnaga

            Fotorealismo

            Sidney Franklin