Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event-Timestamp #197

Open
helioaymoto opened this issue Apr 6, 2024 · 0 comments
Open

Event-Timestamp #197

helioaymoto opened this issue Apr 6, 2024 · 0 comments

Comments

@helioaymoto
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant