Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 3.36 KB

EnableTelephony.md

File metadata and controls

53 lines (31 loc) · 3.36 KB

Telephony Channel

The Telephony channel in Microsoft Bot Framework allows you to bind an Azure Communication Services' PSTN phone number with a Microsoft Bot Framework bot.

The Telephony channel under the hood is built on Microsoft Speech Services to allow Speech to Text and Text to Speech capabilities crucial for enabling an audio interaction/conversation over phone lines.

Please follow these steps to enable the Telephony channel for your bot.

Pre-requisites

Enable web sockets

IMPORTANT: If you do not enable this step, you will hear silence when calling the phone number.

You will need to make a small configuration change so that your bot can communicate with the Telephony channel using web sockets. Follow these steps to enable web sockets:

  1. Navigate to the Azure portal > App Service hosting your bot > Configuration (in the left navigation pane) > open General Settings tab.

  2. Locate the toggle for Web sockets and set it to On.

    enable web sockets
  3. Click Save.

  4. In addition to this, ensure your bot code has enabled communication over web socket, for example in dotnet it is app.UseWebSockets(); in Startup.cs, and in Node.js it is streamingAdapter.useWebSocket() see example.

Enable the Telephony channel in the bot

Once you have created an Azure Cognitive Services and Azure Communication Services resource, you are ready to configure Telephony.

  1. Go to the Azure portal > Select the bot (Created in previous step) > Channels (Preview)

    Select channels (Preview) blade

  2. Select the Telephony channel

  3. Select Connect in the command bar

    select connect
  4. In the "Connect Phone Numbers" pane, make sure you have the correct subscriptions selected, then choose an Azure Cognitive Services resource and an Azure Communication Services resource.

    select resources
  5. Select one or many phone number(s) to connect to your bot, then select Connect

    select phone number(s)
    • Repeat this step for any additional Azure Communication Service resources you'd like to connect.
  6. Select Apply to save your changes and connect the selected number(s) to the bot.

    apply changes

If you experience any issues, please use the pre-existing Channels blade.