fiorix / go-diameter

Diameter stack and Base Protocol (RFC 6733) for the Go programming language
Other
252 stars 143 forks source link

Event-Timestamp #197

Open helioaymoto opened 6 months ago

helioaymoto commented 6 months ago

Hi Guys,

I am having issue to unmashal the Event-Timestamp AVP... I have my CCR struct as: < type CCRDecode struct { SessionID datatype.UTF8String avp:"Session-Id" OriginHost datatype.DiameterIdentity avp:"Origin-Host" OriginRealm datatype.DiameterIdentity avp:"Origin-Realm" DestinationHost datatype.DiameterIdentity avp:"Destination-Host" DestinationRealm datatype.DiameterIdentity avp:"Destination-Realm" CCRequestType datatype.Unsigned32 avp:"CC-Request-Type" CCRequestNumber datatype.Unsigned32 avp:"CC-Request-Number" ServiceContextId datatype.UTF8String avp:"Service-Context-Id" EventTimestamp datatype.Time avp:"Event-Timestamp"

Printing the message directally: I can see: Event-Timestamp {Code:55,Flags:0x40,Length:12,VendorId:0,Value:Time{2024-04-06 12:56:50 -0300 -03}}

but when I check the struct: "EventTimestamp": {},

Any help on this? Kind regards.