Skip to content

Commit 98b74d8

Browse files
authored
Merge pull request #294129 from charithgunaratna/charithg/obo-docs
Adding CTE SharedLineAppearance how-to
2 parents 6b115ec + b05f957 commit 98b74d8

File tree

4 files changed

+84
-1
lines changed

4 files changed

+84
-1
lines changed

articles/communication-services/concepts/interop/teams-user/teams-shared-line-appearance.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,8 @@ The following Azure Communication Services and Graph platforms currently support
5454
> [!NOTE]
5555
> Calling SDK for iOS, Android, and Windows do not currently support shared line appearance.
5656
57-
For more information on the capabilities available during a shared line appearance call, see [Calling capabilities for Teams users](../teams-user-calling.md).
57+
For more information on the capabilities available during a shared line appearance call, see [Calling capabilities for Teams users](../teams-user-calling.md).
58+
59+
## Next steps
60+
61+
- [Get started with Teams Shared Line Appearance in Azure Communication Services](../../../how-tos/cte-calling-sdk/shared-line-appearance.md)
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
author: charithgunaratna
3+
ms.service: azure-communication-services
4+
ms.topic: include
5+
ms.date: 02/04/2025
6+
ms.author: charithg
7+
---
8+
9+
> [!NOTE]
10+
> This API is provided as a preview for developers and might change based on feedback that we receive. Don't use this API in a production environment. To use this API, use the beta release of the Azure Communication Services Calling Web SDK (1.31.1-beta.1 or higher).
11+
12+
[!INCLUDE [Install SDK](../install-sdk/install-sdk-web.md)]
13+
14+
## Place a call on behalf of a Microsoft Teams user
15+
16+
Before placing a call behalf of a delegator, make sure delegate placing the call has `make calls` permission through [delegator call settings in Microsoft Teams](https://support.microsoft.com/office/share-a-phone-line-with-a-delegate-in-microsoft-teams-16307929-a51f-43fc-8323-3b1bf115e5a8)
17+
18+
To place a call on behalf of a Microsoft Teams user, specify `OnBehalfOfOptions` during start call. Replace `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx` with the userId of the delegator and `yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy` with the userId of the callee.
19+
20+
```js
21+
const onBehalfOfOptions = { userId: { microsoftTeamsUserId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" } }
22+
const teamsCallOptions = { onBehalfOfOptions: onBehalfOfOptions };
23+
const call = teamsCallAgent.startCall([{ microsoftTeamsUserId: "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy" }], teamsCallOptions);
24+
```
25+
26+
To place a call to a PSTN user on behalf of a Microsoft Teams user, use `PhoneNumberIdentifier` for call participant.
27+
28+
```js
29+
const call = teamsCallAgent.startCall([{ phoneNumber: "+1xxxxxxxxxx" }], teamsCallOptions);
30+
```
31+
32+
## Receive a call on behalf of a Microsoft Teams user
33+
34+
To receive calls on behalf of a delegator,
35+
36+
- Update delegate permission to enable "receive calls" through [delegator call settings in Microsoft Teams](https://support.microsoft.com/office/share-a-phone-line-with-a-delegate-in-microsoft-teams-16307929-a51f-43fc-8323-3b1bf115e5a8)
37+
- Set up simultaneous ring for delegates through [delegator call settings in Microsoft Teams](https://support.microsoft.com/office/call-forwarding-call-groups-and-simultaneous-ring-in-microsoft-teams-a88da9e8-1343-4d3c-9bda-4b9615e4183e)
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: Tutorial - Teams Shared Line Appearance
3+
description: Use Microsoft Teams Shared Line Appearance with Azure Communication Services Calling SDK.
4+
author: charithgunaratna
5+
ms.author: charithg
6+
ms.service: azure-communication-services
7+
ms.topic: how-to #Required; leave this attribute/value as-is
8+
ms.date: 02/04/2025
9+
---
10+
11+
# Teams Shared Line Appearance
12+
13+
This article describes how to implement Microsoft Teams Shared Line Appearance with Azure Communication Services. Shared line appearance lets a user choose a delegate to make or handle calls on their behalf. This feature is helpful if a user has an administrative assistant who regularly handles the user's calls. In the context of shared line appearance, a manager is a Teams user who authorizes a delegate to make or receive calls on their behalf. A delegate is a Microsoft 365 user who can make or receive calls on behalf of the delegator. You can find additional information about shared line appearance in [Teams documentation](/microsoftteams/shared-line-appearance).
14+
15+
## Prerequisites
16+
17+
- An Azure account with an active subscription. See [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
18+
- A deployed Communication Services resource. See [Create a Communication Services resource](../../quickstarts/create-communication-resource.md).
19+
- A user access token to enable the calling client. For more information, see [Create and manage access tokens](../../quickstarts/identity/access-tokens.md).
20+
- Licensing requirements for delegator and delegates. See [Teams Phone license](/microsoftteams/shared-line-appearance#license-required).
21+
- Enable delegation and shared line appearance. See [Enable delegation](/microsoftteams/shared-line-appearance#enable-delegation-and-shared-line-appearance)
22+
- Assign delegates using [Microsoft Teams Client](https://support.microsoft.com/office/share-a-phone-line-with-a-delegate-in-microsoft-teams-16307929-a51f-43fc-8323-3b1bf115e5a8) or [Teams PowerShell](/microsoftteams/shared-line-appearance#use-powershell).
23+
- Learn more about [Team Shared Line Appearance in Azure Communication Services](../../concepts/interop/teams-user/teams-shared-line-appearance.md)
24+
- Optional: Complete the quickstart to add voice calling to Microsoft Teams user. See [Quickstart: Add voice calling to Microsoft Teams user](../../quickstarts/voice-video-calling/get-started-call-to-teams-user.md).
25+
26+
## Support
27+
28+
### SDKs
29+
30+
The following table shows support for shared line appearance feature in individual Azure Communication Services SDKs.
31+
32+
| Support status | Web | Web UI | iOS | iOS UI | Android | Android UI | Windows |
33+
|----------------|-----|--------|--------|--------|----------|--------|---------|
34+
| Is Supported | ✔️ | | | | | | |
35+
36+
[!INCLUDE [Shared line appearance Client-side JavaScript](./includes/shared-line-appearance/shared-line-appearance-web.md)]
37+
38+
## Next steps
39+
40+
- [Learn how to manage calls](./manage-calls.md)

articles/communication-services/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,8 @@ items:
454454
href: how-tos/calling-sdk/capabilities.md
455455
- name: View PowerPoint Live
456456
href: how-tos/calling-sdk/powerpoint-live.md
457+
- name: Shared Line appearance
458+
href: how-tos/cte-calling-sdk/shared-line-appearance.md
457459
- name: Call flows and networking
458460
items:
459461
- name: Network recommendations

0 commit comments

Comments
 (0)