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

SGSN-Address decode via Struct #196

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

SGSN-Address decode via Struct #196

helioaymoto opened this issue Apr 6, 2024 · 0 comments

Comments

@helioaymoto
Copy link

Hi Guys,

I am trying to map some AVPs from a CCR, but I am not able to handle the SGSN-Address to the actual IP address.
In the wireshark I can see the AVPs reaching my APP as:
I have the following structs to map the AVPs from CCR:

type CCRDecode struct {
:
ServiceInformation ServiceInformation avp:"Service-Information"
}
type ServiceInformation struct {
PSInformation PSInformation avp:"PS-Information"
}
type PSInformation struct {
SGSNAddress datatype.Address avp:"SGSN-Address"
}

From the wireshark, I am getting:
image

but when Im checking what I have in the struct:
=> SGSNAddress as datatype.OctectString:
"ServiceInformation": {
"PSInformation": {
"SGSNAddress": "\ufffd\u003ej\r"
}
}

=> SGSNAddress as datatype.Address:
"ServiceInformation": {
"PSInformation": {
"SGSNAddress": "yD5qDQ=="
}
}
Can you suggest if there is someway easy that I can have it in IP format.

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