Skip to content

Commit 5283500

Browse files
committed
test
1 parent 38d9bb1 commit 5283500

File tree

5 files changed

+99
-17
lines changed

5 files changed

+99
-17
lines changed

articles/communication-services/concepts/voice-video-calling/end-of-call-survey.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,6 @@ The API allows applications to gather data points that describe user perceived r
6969
| Screenshare | 2 | 1 - 5 | A response of 1 indicates an imperfect screen share experience and 5 indicates no screen share issues were experienced. |
7070

7171

72-
second conversion
73-
74-
| **API Rating Categories** | **Cutoff Value\*** | **Input Range** | Comments
75-
|---------------------------|--------------------|-----------------|------------|
76-
| Overall Call | 2 | 1 - 5 | Survey’s a calling participant’s overall quality experience on a scale of 1-5 where 1 indicates an imperfect call experience and 5 indicates a perfect call. The cutoff value of 2 means that a customer response of 1 or 2 indicates a less than perfect call experience. |
77-
| Audio | 2 | 1 – 5 | A response of 1 indicates an imperfect audio experience and 5 indicates no audio issues were experienced. |
78-
| Video | 2 | 1 – 5 | A response of 1 indicates an imperfect video experience and 5 indicates no video issues were experienced. |
79-
| Screenshare | 2 | 1 – 5 | A response of 1 indicates an imperfect screen share experience and 5 indicates no screen share issues were experienced. |
80-
8172

8273

8374
- ***Note:** A question’s indicated cutoff value in the API is the threshold that Microsoft uses when analyzing your survey data. When you customize the cutoff value or Input Range, Microsoft analyzes your survey data according to your customization.
@@ -100,7 +91,7 @@ you find most important. For example, you can choose to only ask
10091
customers about their overall call experience instead of asking them
10192
about their audio, video, and screen share experience. You can also
10293
customize input ranges to suit your needs. The default input range is 1
103-
to 5 for Overall Call, <span class="mark">Audio</span>, Video, and
94+
to 5 for Overall Call, Audio, Video, and
10495
Screenshare. However, each API value can be customized from a minimum of
10596
0 to maximum of 100.
10697

articles/communication-services/concepts/voice-video-calling/testcommonmark.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ ms.topic: conceptual
1212
ms.service: azure-communication-services
1313
ms.subservice: calling
1414
---
15-
1615
# Contents
1716

1817
[1 Developing [1](#developing)](#developing)
@@ -131,6 +130,37 @@ export interface CallSurveyFeature extends CallFeature {
131130

132131
}
133132

133+
\`\`\`javascript
134+
135+
call.feature(Features.CallSurvey).submitSurvey({
136+
137+
                overallRating: { score: 3 }
138+
139+
            }).then(() =\> console.log('survey submitted successfully'))
140+
141+
\`\`\`
142+
143+
\`\`\`typescript
144+
145+
    const call: Call = callAgent.startCall(\['{target participant /
146+
callee MRI / number}'\]);
147+
148+
call.on('stateChanged', callStateChangedHandler);
149+
150+
const callStateChangedHandler = () =\> {
151+
152+
    if (call.state === 'Disconnected') {
153+
154+
        console.log('call end reason', call.callEndReason);
155+
156+
            // TODO: Show the UI to collect the survey data
157+
158+
       }
159+
160+
};
161+
162+
\`\`\`
163+
134164
Code
135165

136166
Sample JSON Object-

articles/communication-services/concepts/voice-video-calling/testgithubflavored.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ ms.service: azure-communication-services
1313
ms.subservice: calling
1414
---
1515

16-
1716
# Contents
1817

1918
[1 Developing [1](#developing)](#developing)
@@ -93,6 +92,37 @@ export interface CallSurveyFeature extends CallFeature {
9392

9493
}
9594

95+
\`\`\`javascript
96+
97+
call.feature(Features.CallSurvey).submitSurvey({
98+
99+
                overallRating: { score: 3 }
100+
101+
            }).then(() =\> console.log('survey submitted successfully'))
102+
103+
\`\`\`
104+
105+
\`\`\`typescript
106+
107+
    const call: Call = callAgent.startCall(\['{target participant /
108+
callee MRI / number}'\]);
109+
110+
call.on('stateChanged', callStateChangedHandler);
111+
112+
const callStateChangedHandler = () =\> {
113+
114+
    if (call.state === 'Disconnected') {
115+
116+
        console.log('call end reason', call.callEndReason);
117+
118+
            // TODO: Show the UI to collect the survey data
119+
120+
       }
121+
122+
};
123+
124+
\`\`\`
125+
96126
Code
97127

98128
Sample JSON Object-

articles/communication-services/concepts/voice-video-calling/teststrict.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ms.service: azure-communication-services
1313
ms.subservice: calling
1414
---
1515

16+
1617
# Contents
1718

1819
[1 Developing [1](#developing)](#developing)
@@ -131,6 +132,38 @@ export interface CallSurveyFeature extends CallFeature {
131132

132133
}
133134

135+
\`\`\`javascript
136+
137+
call.feature(Features.CallSurvey).submitSurvey({
138+
139+
                overallRating: { score: 3 }
140+
141+
            }).then(() =&gt; console.log('survey submitted
142+
successfully'))
143+
144+
\`\`\`
145+
146+
\`\`\`typescript
147+
148+
    const call: Call = callAgent.startCall(\['{target participant /
149+
callee MRI / number}'\]);
150+
151+
call.on('stateChanged', callStateChangedHandler);
152+
153+
const callStateChangedHandler = () =&gt; {
154+
155+
    if (call.state === 'Disconnected') {
156+
157+
        console.log('call end reason', call.callEndReason);
158+
159+
            // TODO: Show the UI to collect the survey data
160+
161+
       }
162+
163+
};
164+
165+
\`\`\`
166+
134167
Code
135168

136169
Sample JSON Object-

articles/communication-services/tutorials/end-of-call-survey-tutorial.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,11 @@ This tutorial shows you how to use the Azure Communication Services End of Call
3535
- [Node.js](https://nodejs.org/) active Long Term Support(LTS) versions are recommended.
3636

3737
- An active Communication Services resource. [Create a Communication Services resource](../quickstarts/create-communication-resource.md). Survey results are tied to single Communication Services resources.
38-
- An active Log Analytics Workspace, also known as Azure Monitor Logs, to analyze your survey results. [Enable logging in Diagnostic Settings](../concepts/analytics/enable-logging.md).
39-
40-
41-
## To store survey results
38+
- An active Log Analytics Workspace, also known as Azure Monitor Logs, to ensure you do not lose your survey results. [Enable logging in Diagnostic Settings](../concepts/analytics/enable-logging.md).
4239

40+
<!-- need to update the version after beta release -->
4341
> [!IMPORTANT]
44-
> End of Call Survey is available starting on the version [1.9.1-beta.1](https://www.npmjs.com/package/@azure/communication-calling/v/1.9.1-beta.1) of the Calling SDK. Make sure to use that version or later when trying the instructions.
42+
> End of Call Survey is available starting on the version [1.13-beta.1](https://www.npmjs.com/package/@azure/communication-calling/v/1.13-beta.1) of the Calling SDK. Make sure to use that version or later when trying the instructions.
4543
4644
### Sample of API usage
4745

0 commit comments

Comments
 (0)