Skip to content

Commit 82835a6

Browse files
Update calling troubleshooting
1 parent 094375d commit 82835a6

File tree

2 files changed

+15
-7
lines changed
  • articles/communication-services/how-tos/ui-library-sdk/includes/troubleshooting

2 files changed

+15
-7
lines changed

articles/communication-services/how-tos/ui-library-sdk/includes/troubleshooting/android.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,29 @@ Azure Communication UI [open source library](https://github.com/Azure/communicat
1111

1212
### Get debug information
1313

14-
When troubleshooting happens for voice or video calls, user may be asked to provide a CallID; this ID is used to identify Communication Services calls.
14+
When troubleshooting happens for voice or video calls, user may be asked to provide a CallID; this ID is used to identify Communication Services calls. Every call may have multiple Call Ids
1515

16-
CallID can be retrieved from `CallComposite`:
16+
Call ID can be retrieved from `CallComposite`:
1717

1818
#### [Kotlin](#tab/kotlin)
1919

2020
```kotlin
2121
val callComposite: CallComposite = CallCompositeBuilder().build()
2222
...
23-
val debugInfo = callComposite.debugInfo
24-
val lastCallId = debugInfo.lastCallId
23+
val callHistoryRecords = callComposite.getDebugInfo(context).callHistoryRecords
24+
val callHistoryRecord = callHistoryRecords.lastOrNull()
25+
val callDate = callHistoryRecord.callStartedOn
26+
val callIds = callHistoryRecord.callIds
2527
```
2628

2729
#### [Java](#tab/java)
2830

2931
```java
3032
CallComposite callComposite = new CallCompositeBuilder().build();
3133
...
32-
CallCompositeDebugInfo debugInfo = callComposite.getDebugInfo();
33-
String lastCallId = debugInfo.getLastCallId();
34+
35+
List<CallCompositeCallHistoryRecord> callHistoryRecords = callComposite.getDebugInfo(context).getCallHistoryRecords();
36+
CallCompositeCallHistoryRecord callHistoryRecord = callHistoryRecords.get(callHistoryRecords.size() - 1);
37+
LocalDateTime callDate = callHistoryRecord.getCallStartedOn();
38+
List<String> callIds = callHistoryRecord.getCallIds();
3439
```

articles/communication-services/how-tos/ui-library-sdk/includes/troubleshooting/ios.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@ The debug information can be retrieved from `CallComposite`:
2121
let callComposite = CallComposite()
2222
...
2323
let debugInfo = callComposite.debugInfo
24-
let currentOrLastCallId = debugInfo.currentOrLastCallId
24+
let callHistoryRecords = debugInfo.callHistoryRecords
25+
let callHistoryRecord = callHistoryRecords.last
26+
let callDate = callHistoryRecord?.callStartedOn
27+
let callIds = callHistoryRecord?.callIds
2528
```

0 commit comments

Comments
 (0)