Help Center> VoiceCall> Service Overview> Service Introduction> Introduction to the Voice Verification Code Function

Introduction to the Voice Verification Code Function

Function Experience

Jane needs to register an e-hailing software account. After entering the phone number on the registration page, Jane clicks the button for obtaining the voice verification code and then receives in incoming call. Jane can obtain the verification code after answering the call. Figure 1 shows the detailed process.

Figure 1 Voice verification code service process

The voice verification code function applies to the following scenarios:

  • One-click registration: After entering the phone number, the user obtains and enters the voice verification code to complete the registration, which is very convenient.

  • E-commerce: When the user logs in to the e-commerce website, the voice verification code is required to verify the user identity, ensuring high security.

  • Online ticket booking: The online ticket booking website requires the user to enter the voice verification code before placing an order, preventing click farms.

Function Implementation Process

Jane needs to register an e-hailing software account. After entering the phone number, Jane obtains the voice verification code. Figure 2 shows the entire service process.

Figure 2 Voice notification function implementation process

Prerequisites

The connection between the e-hailing software server and RTC service platform is normal.

  1. The e-hailing software server logs in to the RTC service platform successfully.

    NOTE:

    The e-hailing software server invokes the trusted SP simple authorization API to complete the authentication on the RTC service platform. If the authentication time is about to expire, the server can invoke the authorization refreshing API for re-authentication.

  2. Jane needs to register an e-hailing software account. After entering the phone number, Jane clicks the button for obtaining the voice verification code.
  3. The e-hailing software server sends a voice verification code request to the RTC platform for playing the voice verification code to Jane.

    NOTE:

    The e-hailing software server invokes the voice verification code API to complete the entire call process.

  4. The RTC platform calls Jane.
  5. Jane answers the phone.
  6. The RTC platform plays the voice verification code to Jane.
  • During the call, the e-hailing software server can obtain the call status notification (such as ringing, answering, and hanging up) by receiving messages sent by the call status and CDR notification API.
  • After the call ends, the e-hailing software server can obtain the CDR of the call by receiving messages sent by the call status and CDR notification API.
    NOTE:

    To obtain call status notification and CDR, the developer needs to set URLs used for receiving call status notification and CDR on the RTC platform.

Success Case

The voice verification code service has been successfully used by Cloud Speaker. This service is very convenient and ensures the reliability.