LenardFurr | 2020-04-27 14:27:26 UTC | #1
I have a small sample application that registers for conversation notifications, but I am having a problem. When serialize the notification and just write it out, I can see all the available data, but when I parse through it using the .NET SDK structures, not all the data comes through. Specifically, if I parse the participants, then parse through the calls for a specific participant, if the state of that call is alerting, then state shows OutdatedSdkVersion. The connected state shows up just fine and the disconnect state works, it just seems to be the alerting. Here is a sample of the code where I am parsing through the message.
var conversation = (NotificationData<ConversationEventTopicConversation>)data; foreach(var Participant in conversation.EventBody.Participants) { if(Participant.Purpose == "agent") { lEvent.Extension = Participant.UserId; lEvent.Queue = Participant.QueueId; foreach (var Call in Participant.Calls) { if (Call.State == ConversationEventTopicCall.StateEnum.Connected) { lEvent.State = (int) Call.State; lEvent.ANI = Call.Other.Name; lEvent.direction = (int)Call.Direction; lEvent.Time = (DateTime)Participant.ConnectedTime; } if (Call.State == ConversationEventTopicCall.StateEnum.Disconnected) { lEvent.State = (int)Call.State; lEvent.ANI = Call.Other.Name; lEvent.direction = (int)Call.Direction; lEvent.Time = (DateTime)Participant.EndTime; }
} } }
LenardFurr | 2020-04-27 14:29:53 UTC | #2
I am using version 86.0.1 of the SDK which is the latest according to NuGet.
LenardFurr | 2020-04-27 19:27:58 UTC | #3
This also seems to happen with the terminated state.
tim.smith | 2020-04-27 22:22:42 UTC | #4
The OutdatedSdkVersion enum value is there to identify when a value sent by the server isn't known by the client. Since you're on the latest version, the name of the value is a little misleading, but the reason for it is the same. However, the cause is that the event is incorrectly documented and therefore the SDK's classes are generated in the same incorrect manner. Please open a case with Genesys Cloud Care to report the incorrect event contract. Be sure to note what topic you're using and the specific properties and values that are causing issues. If you get any pushback from Care because this is related to the SDK, please ask the Care rep to talk to me about it and I'll assist.
system | 2020-05-28 22:22:46 UTC | #5
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: 7648