Configuring the Javascript reference client and making a call

Last Updated : Sep 09, 2020 |

Before you begin

Ensure that the following certificates are installed on the client computer:

  • A trust certificate for System Manager that manages the cluster containing Avaya Mobile Communications Snap-in.

  • A trust certificate for Avaya Aura® Device Services using the link: https://<Avaya Aura Device Services_FQDN>/acs/resources.

  • A trust certificate for Avaya Aura® Web Gateway using the link: https://<Avaya Aura Web Gateway_FQDN/csa/resources/tenants/default.

Procedure

  1. In your web browser, enter the following URL:

    https://<IP Address>/OceanaReferenceClient/index.html

    <IP Address> is the IP address of the server hosting the Reference Client web application.

  2. On the Click to Call screen, click the Hamburger menu on the left.
  3. In the navigation pane, click Settings.
  4. In the CONFIG section, do the following:
    1. In the AMC Cluster Address field, enter the address of the cluster containing Avaya Mobile Communications Snap-in.
    2. In the AMC Cluster Port field, type one of the following values based on the protocol that the reference client uses when connecting to the cluster containing Avaya Mobile Communications Snap-in:
      • Type 80 for HTTP.

      • Type 443 for HTTPS.

    3. In the AMC Url Path field, leave the default value, services/AvayaMobileCommunications/sessions/.
    4. In the Display Name field, enter the customer display name.
    5. In the From Address field, enter the customer address.

      The from address must be a numeric value. If you do not specify a from address, it is randomly assigned for each call.

    6. In the Destination Address (Optional) field, enter the number to make direct station/agent calls.

      The direct station/agent calls are the calls that are not routed through Avaya Oceana®.

      Important:

      This step is for debug purposes only and must be left empty by default.

    7. In the Context (Optional) field, enter the customer specific information.
    8. In the Topic (Optional) field, enter the customer specific information.
  5. In the AAWG CONFIG section, do the following:
    1. In the AAWG Server Address field, enter the FQDN of the Avaya Aura® Web Gateway server.
    2. In the AAWG Server Port field, type one of the following values:
      • Type 80 for HTTP.

      • Type 443 for HTTPS.

    3. Configure the Use HTTPS field to enable security.
  6. In the SERVICE section, configure appropriate values in the Priority, Locale, and Strategy fields and also configure the routing attributes for the selection of an agent.
    • To add an attribute, click the plus icon (+) in the table header row and enter the attribute details.

    • To delete an attribute, click the bin icon in the attribute row.

    • To edit an existing attribute, click the pencil icon in the attribute row.

  7. Optional In the RESOURCE section, do the following:
    1. In the Source Name field, enter the name of the Voice provider to which the agent is associated.
    2. In the Resource Id field, enter the Native Resource ID of the agent.

      To get the Voice provider name, you must log on to Avaya Control Manager and access the Providers tab on the Avaya Oceana Server Edit page.

    Perform this step only if you use the Specified (Required or Preferred) Resource or Coverage feature for Web Voice.

  8. In the TOKEN CONFIG section, do the following:
    1. In the Token Service Address field, enter the FQDN of the web server that is hosting the token service.
    2. In the Token Service Port field, enter the port number of the web server that is hosting the token service.
    3. In the Use HTTPs field, do one of the following based on the protocol that the reference client uses when connecting to the web server that is hosting the token service:
      • Move the slider to the left for HTTP.

      • Move the slider to the right for HTTPS.

    4. In the Token Server Url Path field, enter the URL path to connect to the token service hosted on a web server
  9. Click Save.
  10. Click the Hamburger menu on the left and then select Web Voice or Web Video.
  11. Click Click to Call to initiate a Avaya WebRTC Connect Voice/Video call.

    For a Voice call, ensure that you have a microphone connected and the browser has access to the microphone. For a Video call, ensure that you have a webcam and a microphone connected and the browser has access to the webcam and the microphone.