android Outbound caller id - on/off

前端 未结 5 1440
广开言路
广开言路 2021-01-06 20:44

I wan to hide/show my caller id from my activity programmatically. I tried to find it in the android documentation but without the luck. Maybe you have any ideas?

5条回答
  •  生来不讨喜
    2021-01-06 21:12

    The Caller ID is network specific not something that the phone controls. In fact in certain mobile network configurations the phone doesn't even 'know' its own phone number.

    Some networks support sending an activate/deactivate caller ID network command. In GSM this is normally #31#. It can be permanent or on a per call basis.

    1. Permanent requests the network to hide the caller ID for all calls.
    2. Per call requests the network to hide the caller ID only for that call. The latter is achieved by prefixing the number being called by #31#, so for example calling #31#85432786426 would call 85432786426 hiding the caller.

    Some networks support both, some only support one of them, and some do not enable it. Try your luck and try prefixing the dialed number with #31# and see if it works.

    http://www.gsm-security.net/faq/gsm-caller-id-clip-clir.shtml

提交回复
热议问题