|
| 1 | +--- |
| 2 | +title: Manage the call duration events using Calling SDKs |
| 3 | +titleSuffix: An Azure Communication Services how-to guide |
| 4 | +description: Use Azure Communication Services Calling SDKs to handle call duration events |
| 5 | +author: garchiro7 |
| 6 | + |
| 7 | +ms.author: jorgegarc |
| 8 | +ms.service: azure-communication-services |
| 9 | +ms.subservice: calling |
| 10 | +ms.topic: how-to |
| 11 | +ms.date: 09/01/2024 |
| 12 | +ms.custom: template-how-to |
| 13 | +zone_pivot_groups: acs-plat-ios-android-windows |
| 14 | +--- |
| 15 | + |
| 16 | +# Manage call duration |
| 17 | + |
| 18 | +Provides developers with the capability to programmatically trigger and track events when a call starts. Capturing the initiation of a call enables businesses to execute crucial workflows, including logging call metadata, initiating timers for duration tracking, or triggering user interface updates to reflect the real-time call status. |
| 19 | + |
| 20 | +## Start time |
| 21 | + |
| 22 | +The ability to use **call start time events** allows developers to capture and utilize the exact time a call is initiated. By subscribing to these events, developers gain valuable insights that can be applied in various use cases, such as performance tracking and user experience enhancements, among other uses. |
| 23 | + |
| 24 | +### Use cases |
| 25 | + |
| 26 | +#### Enhanced user experience |
| 27 | +Developers can use the call start time to display call duration to users in real time, improving the user experience by providing transparency on how long the user has been in the call. |
| 28 | + |
| 29 | +**Example:** In a video conferencing app, the UI can display an active call timer showing how long the participants have been in the meeting, increasing user engagement. |
| 30 | + |
| 31 | +By utilizing the call start time API events, developers can build more robust, feature-rich applications that improve the user experience, ensure compliance, and support detailed performance monitoring. |
| 32 | + |
| 33 | +#### Performance and monitoring analytics |
| 34 | +By retrieving the call start time, developers can measure call duration and integrate with monitoring systems to analyze the performance of calls. This information is crucial for identifying call quality issues, optimizing network performance, and understanding user behavior. |
| 35 | + |
| 36 | +**Example:** A customer support center can track how long agents stay on calls and identify trends related to call durations, improving resource management. |
| 37 | + |
| 38 | +## Prerequisites |
| 39 | + |
| 40 | +- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) |
| 41 | +- A deployed Communication Services resource. [Create a Communication Services resource](../quickstarts/create-communication-resource.md) |
| 42 | +- A user access token to enable the calling client. For more information, see [Create and manage access tokens](../quickstarts/identity/access-tokens.md). |
| 43 | +- Optional: Complete the quickstart to [add voice calling to your application](../quickstarts/voice-video-calling/getting-started-with-calling.md) |
| 44 | + |
| 45 | +::: zone pivot="platform-android" |
| 46 | +[!INCLUDE [Manage Call duration events using Android](./includes/call-duration/android.md)] |
| 47 | +::: zone-end |
| 48 | + |
| 49 | +::: zone pivot="platform-ios" |
| 50 | +[!INCLUDE [Manage Call duration events using iOS](./includes/call-duration/ios.md)] |
| 51 | +::: zone-end |
| 52 | + |
| 53 | +::: zone pivot="platform-windows" |
| 54 | +[!INCLUDE [Manage Call duration events using Windows](./includes/call-duration/windows.md)] |
| 55 | +::: zone-end |
| 56 | + |
| 57 | +## Next steps |
| 58 | + |
| 59 | +- [Learn how to manage calls](../how-tos/calling-sdk/manage-calls.md) |
| 60 | +- [Learn about the UI Library](../concepts/ui-library/ui-library-overview.md) |
0 commit comments