Skip to content

SGSN-Address decode via Struct #196

@helioaymoto

Description

@helioaymoto

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions