Updated on 2024-03-05 GMT+08:00

Registration of Listening Events and Execution Verification of the Event Handler

After page integration is complete, you need to test and verify whether the functions of registering listening events and removing listening events, the callback function, and the one-click outbound call function are normal. The following uses the Chrome browser as an example. During the verification, you can use the Nginx server to simulate a third party to invoke the basic page or use other access methods that you are familiar with.

  1. Enable the Nginx server on the local PC (for details about the Nginx version, see nginx/Windows-1.22.0), and configure the integration page in the HTML file in the nginx directory. You can also configure the path of the integration page in the nginx.conf file.
  2. Open the AICC page, add the integration page access address configured in Step 1 to the address trustlist by referring to Configuring the Address Trustlist, and configure a screen pop-up by referring to Configuring a Screen Pop-up.
  3. Open the audio and video workbench and register an event on the integration page. (The page demonstrated here automatically registers the corresponding event when it is opened. Therefore, the Init event handler is executed as soon as the page is opened.)

    The AICC Support Demo Page Init log is output by the event handler that registers a listening event. For details, see Registering Listening Events.

  4. After signing in as an agent and registering a ringing listening event, dial the configured called number through the OpenEye client (for details, see OpenEye Installation Guide).
  5. When receiving a call, check that the integration page executes the ringing event handler and returns information.

    The AICC Support Demo Page Ringing log is output by the event handler that registers a listening event. For details, see Registering Listening Events.