Legacy Dev Forum Posts

 View Only

Sign Up

Get real time call disconnect event at the end of the call

  • 1.  Get real time call disconnect event at the end of the call

    Posted 06-05-2025 18:05

    Kasra_Moshrefi | 2019-07-22 14:39:25 UTC | #1

    Hi, For some legal reasons, we need to get call conversation data and voice recorded from purecloud server and save it in our own server immediately at the end of the call (or wrap up) and then delete call conversation and recorded voice from purecloud server. 1- How using .NET api we can find out call(s) is ended in real time and getting call UID? 2- How using .NET we can delete conversation history and recorded voice using received UID from question 1?


    tim.smith | 2019-07-23 00:21:43 UTC | #2

    You can use notifications to retrieve data about conversations in real time. The .NET SDK has a helper for notifications and is documented on the SDK's main page.

    Recordings are managed via retention policies. If you have questions about configuring retention policies, such base configuration questions are appropriate for the PureCloud Community Forum.


    Kasra_Moshrefi | 2019-07-23 20:29:51 UTC | #3

    Thanks, I'm working on it. For now, on the SDK's main page, we have handler.AddSubscription($"v2.users.{_me.Id}.conversations", typeof(ConversationNotification)); but look like there is no definition for "ConversationNotification" data type. it's not in any of PureCloudPlatform.Client.V2 classes

    Or in this answer: https://developer.mypurecloud.com/forum/t/notificationhandler-failing-on-addsubscription/1887/2

    You are using typeof(UserPresenceNotification) and typeof(ConversationNotification). Where are they defined?


    tim.smith | 2019-07-24 14:06:42 UTC | #4

    It should be ConversationEventTopicConversation. You can find the list here: https://github.com/MyPureCloud/platform-client-sdk-dotnet/blob/master/notificationMappings.json


    Kasra_Moshrefi | 2019-08-06 18:27:39 UTC | #6

    Thanks, using your help now it works fine:

    handler.AddSubscription($"v2.users.{me.Id}.presence", typeof(PresenceEventUserPresence)); handler.AddSubscription($"v2.users.{me.Id}.conversations", typeof(ConversationEventTopicConversation));

    Just needed to add Websocket-sharp to references


    Kasra_Moshrefi | 2019-08-13 12:45:39 UTC | #7

    How to delete a conversation completely with recorded voice using conversation ID? I could not find a DEL api Or maybe a command/class in .NET ; I'm using purecloud .NET SDK


    system | 2019-09-12 20:31:57 UTC | #8

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 5602