My Android advanced tour ------ & gt; four call transfer scenarios, android advanced

Source: Internet
Author: User

My Android advanced tour ------> four call transfer scenarios, android advanced

The operator provides the following call transfer scenarios:


1. Always call transfer: No matter what status the current mobile phone is in, incoming calls will be transferred to the specified phone number. You should be very careful when using this type of call transfer. If this type of call transfer is enabled, you will never be able to receive the call, and your mobile phone will not respond.

2. Call Transfer When busy: This call transfer method is very useful. For example, if a salesperson has a large business volume and has another landline around him, set the call transfer number to the landline number. In this way, an incoming call occurs when you use a mobile phone to answer the call or make a call. The incoming call is directly transferred to the landline so that important calls are not missed. This call transfer method also performs call transfer when the call is rejected. Therefore, you can use this call transfer method to implement the call interception function. That is to say, when a call is sent, the application will immediately stop the call. This is based on the set transfer phone number, the recipient will hear four types of voice replies: "The phone has been stopped", "The phone has been shut down", "the phone number is empty", and "The phone number is in the middle of the call.

3. Call Transfer when no response is received: if the call is not answered for some reason, the call is interrupted after a certain period of time.

4. Call Transfer when the connection fails: Call Transfer is performed when the signal is not on the server, there is no signal or shutdown.


All the above four call transfer methods have their corresponding special numbers. In addition, you can use a special number to cancel call transfer and query whether a call transfer is enabled. The special numbers corresponding to the above four call transfer methods are as follows:

Function Set Cancel Query
Always call transfer
** 21 * phone number #
#21 # * #21 #
Call Transfer When busy
** 67 * phone number #
#67 #
* #67 #
Call Transfer when no response is received
** 61 * phone number #
#61 #
* #61 #
Call Transfer when the connection fails
** 62 * phone number #
#62 #
* #62 #



The code for setting the call transfer number when the line is busy is as follows:

Intent callIntent=new Intent(Intent.ACTION_CALL,Uri.parse(Uri.encode("tel:**67*12345678910#")));startActivity(callIntent);

The code for calling the transfer number when the line is canceled is as follows:

Intent callIntent=new Intent(Intent.ACTION_CALL,Uri.parse(Uri.encode("tel:##67#")));startActivity(callIntent);


The code for querying the call transfer number when the line is busy is as follows:

Intent callIntent=new Intent(Intent.ACTION_CALL,Uri.parse(Uri.encode("tel:*#67#")));startActivity(callIntent);

========================================================== ========================================================== ============================

Author: Ouyang Peng: Welcome to repost. sharing with others is the source of progress!

Reprinted Please retain the original address: http://blog.csdn.net/ouyang_peng

========================================================== ========================================================== ============================



Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.